I have been trying to convert my site to be more responsive by setting margins, etc. as percentages. I converted my margin-left: 29px;
into margin-left: 1.510416%;
based on the width of the page. Yet when I tried to do the same based on the height
of the page, which upon inspection was 955px
,(setting margin-top:25px
as margin-top: 2.617801047
), the element moved down significantly.
Is the site seeing the height of the page as significantly longer than that shown? When I set margin-top: 1%;
the element is nearly in the right place, but I don't understand what it is basing that 1% off of and how to find that exact height?
Thanks!