Quantcast
Channel: w3c – w3toppers.com
Browsing all 2 articles
Browse latest View live

Why are margin/padding percentages in CSS always calculated against width?

Transferring my comment to an answer, because it makes logical sense. However, please note that this is unfounded conjecture. The actual reasoning of why the spec is written this way is still,...

View Article


What is the point of CSS collapsing margins?

The general meaning of “margin” isn’t to convey “move this over by 10px” but rather, “there must be 10px of empty space beside this element.” I’ve always found this is easiest to conceptualize with...

View Article
Browsing all 2 articles
Browse latest View live