CSS Grid System for Forms (Multi-Column)

前端 未结 8 1574
时光说笑
时光说笑 2021-01-30 02:20

For future reference here is the final result with pixel perfect precision:

The CSS code:

._25 {
    width: 21%;
    display:          


        
8条回答
  •  执念已碎
    2021-01-30 03:06

    Here's a basic kickoff example which may be of use:

    
    
        
            
        
        
            
    Contact form

    Note that I am using left-floated div's of half-width instead of unordered list items.

    As you insist in using percentages, don't expect it to be pixelperfect in all browsers. If you want to have it all pixelperfect, you really need to use pixels.

提交回复
热议问题