Search code examples
csshtmlresolution

View full resolution on mobile device


Ive been on multiple website where onload where the website is zoomed out to keep resolution and therefore stopping overlaps on the mobile page.

Im not sure i am explaing my question correctly. As i am a new member, i will add links to the differences.

I have tried some css3 media queries and some meta tags i have found online but nothing is working for me at the moment.

Here is the link to my site: http://conorpendlebury.com/

As you can see from the image below there is overlapping with the navigation bar which pushes the content too far giving a squished appearance. http://conorpendlebury.com/Images/Screenshot.png


Solution

  • Are you trying to make your #Sidebar to overlap your #MainContent and #Footer when activated while #Bio wont squish?

    If so, make your #MainContent and #Footer with position: relative and z-index: -1 and remove whatever is making their marginLeft equals to document.getElementById('Sidebar').style.width while activated.

    If you intended to make it squished, you need a function to recalculate and reapply css to #MainContent and #Footer.