Is such alignment achievable without ?
后端 未结 5 1100
攒了一身酷
攒了一身酷 2021-01-17 11:57

\"The

My goal is an alignment as shown in the attached image (the fields on the left may have a

5条回答
  •  有刺的猬
    2021-01-17 12:52

    Here, you could use this for getting the output required.

    Using tables IMO is not bad practice, in fact they should be used where tabular data is required, or the format of data resembles a table.

    However, designing a full page, or anything not to be displayed in a tabular format, using a table is discouraged, and is in fact very very wrong. Here goes a sample using a non-table structure:

    HTML :



    CSS:

    label {
        width: 80px;
        display: block;
        vertical-align: middle;
        float:left;
        clear:left;
    }
    input {
        border-top-left-radius:5px;
        border-bottom-right-radius: 10px;
        background: #141414;
        color: #fdd56c;
        outline: none;
    }
    

    Here is an example

提交回复
热议问题