CSS fluid columns, fixed margins; the holy grail of holy grails

后端 未结 10 647
深忆病人
深忆病人 2020-12-12 10:56

Update & Summary

I feel obligated to make this question clearer, now that there is a bounty attached.

(Also, I\'m pretty sure this will be child\'s

10条回答
  •  猫巷女王i
    2020-12-12 11:40

    Why don't you use

    .column > .panel {
        padding: 10px 0 10px 10px;
    }
    
    .column:first-child > .panel {
        padding-left: 0px;
    }
    

    It will make 10px spaces only between boxes and without using last-child.

提交回复
热议问题