Quote:
Originally Posted by JSWolf
When did % become related to width? I think that's not correct. It's related to height. And done right, it will be related to the height of the screen or window.
|
Since CSS 2.1 at least (
https://www.w3.org/TR/CSS2/box.html#margin-properties):
'margin-top', 'margin-bottom'
[...]
Percentages: refer to width of containing block