[Theme – Twenty Eleven] how to prevent elements moving when broswer window
-
Hi,
I’m using a child theme based on twenty eleven, and I’d like to try to fix everything in place on the page, so that the content doesn’t shift when the browser window is resized.
My blog is here. Please let me know if you’d like me to paste in any relevant code.
Currently I’ve managed to get the header and menu bar to stay in place. For the rest, I’ve begun setting positions to ‘absolute’ and changing percentage widths to pixel widths. (width is currently 1000px; this is probably too wide and I’ll need to change later, but I guess that’s a separate problem).
You’ll see that the sidebar currently moves when the window is resized, and it also overshoots the footer, rather than pushing it down. This is noticeable on pages, like here.
Code for the sidebar is:
#secondary { float: right; position: absolute; margin-left: 736px; margin-top: 50px; margin-right: 76px; width: 188px; }
Any suggestions on how to fix everything in position would be much appreciated.
Many thanks.
- The topic ‘[Theme – Twenty Eleven] how to prevent elements moving when broswer window’ is closed to new replies.