I am trying to make my margin-bottom css properties on .header, .mainBanner, and the lis scale relative to the height of the document/window but they are scaling relative to the width of the document/window while the heights of the divs are scaling properly…
height:8%
The above scales correctly
margin-bottom:2%;
The above does not.
How can I make them scale relative to the height?
Margin declared in percentages is based on its parent node’s width. Go figure.
Here’s a great article that should help you out: http://mattsnider.com/css-using-percent-for-margin-and-padding/