![]() |
Logo and Nav Links Changing Position With Browser Window Expansion
I'm back again... I am working on this site for a friend, and I notice my logo and header links kind of get moved over to the left hand side of the site when the browser window is expanded to it's fullest.
The content seems to stay the same in the middle, positioned perfectly, no matter how big or small the browser window is. I have tried playing around with the absolute and relative positioning, but nothing seems to be working. I am basically trying to get the logo and navigation to stay in the exact spot when the browser window is expanded. I have a header div with my navigation within that header. My logo is also within the header div. This all comes before my body. Code:
<div id="header">Code:
#header{width:100%; height:130px; position:relative; margin:0 auto; background-color: #000;} |
Hello WebLizzard,
If you nest #header in another container you can make #header center like the rest of your content and still have your black bar across the top. Look how it acts when you do this - Code:
#header { |
Thanks!
It took me a good 20 minutes, but I finally got it. I had to make a container like you told me to. You definitely helped me, so thank you so much.
~Liz |
Oh yes, that works much better.
Interesting site... |
Thanks - I am actually making it for a friend. He had some really good ideas. Feel free to vent on it if you want :-)
P.S.- I am still learning CSS and all that fun stuff. I'm sure you can tell. I appreciate all your help. |
| All times are GMT +1. The time now is 01:18 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.