3 ms·
Extra <div>s just to control margins looks very much like having to add markup just to do layout, i.e. mixing markup with layout. Your nested div has no semant
by silvestrov 15y ago
Extra <div>s just to control margins looks very much like having to add markup just to do layout, i.e. mixing markup with layout. Your nested div has no semantic meaning, they are only present for layout.
- huckfinnaafb 15y ago<div>s are semantically neutral so while it is extra markup, it's not like they had any semantic meaning in the first place. The relevancy of semantics is a can of worms in of itself... If you're not interested in separating layout markup from content markup, the box-sizing property might be for you. But I'd certainly avoid using calc()...