Best way to represent 1/3rd of 100% in CSS?

后端 未结 4 943
青春惊慌失措
青春惊慌失措 2020-12-04 18:33

I have a big

with three little
\'s inside of it, inline. They each have 33% width, but that causes some alignment problems b
4条回答
  •  渐次进展
    2020-12-04 19:26

    .col_1_3 {
        width: 33%;
        float: left;
    }
    
    .col_1_3:nth-of-type(even) {
        width: 34%;
    }
    

提交回复
热议问题