I have a div that I want to place 10% below the top of the page. If I use this CSS rule:
#div-block{
margin-top: 10%;
}
The calculated margin-top edge is approximately 192px (screen resolution is 1920 x 1080), so all the browsers I tested use the page width (not height) to calculate the value.
How can I make them compute using height (suppose 1080px) using only CSS?
source
share