Is such alignment achievable without ?
后端 未结 5 1170
攒了一身酷
攒了一身酷 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:32

    While it is possible to achieve the same with tables, it would be considered semantically incorrect to use a table for the purpose of layout. Especially since you can achieve the same using just a line or two of CSS.

    Give your labels a fixed width (something larger than your longest label text).

    
    
    
    
    

    Example

提交回复
热议问题