Home › Forums › CSS › How can I make margins collapsed if I floated the elements? › Reply To: How can I make margins collapsed if I floated the elements?
Your widths aren’t logical since they don’t account for the margins.
width:33% means 33% of ALL the parent width…not 33% of the remaining width.
Accordingly, you have to account for the margins in your width calculations.
width: calc(33.33% - 2em);