Hello I want to add a menu that don't move with the side of the browser when I re-size it. I want it to stay in that one position relative to my text. What css do I use? Thanks in advance.
| SitePoint Sponsor |
Hello I want to add a menu that don't move with the side of the browser when I re-size it. I want it to stay in that one position relative to my text. What css do I use? Thanks in advance.
█ ServerFlare | Blazing Fast Server. Blazing Fast Network.


In a sense, it should do that without CSS at all. It sounds like you are using position: absolute or something like that, which is generally not a good way to go.
We really need to see a live link, or the code you are suing, to be much help.![]()
Ok. Thank for the reply. Well please look at
My Website
The "Team Member One..." moves with the left side of the browser when I increase the horizontal width of the browser.
Thanks in advance
█ ServerFlare | Blazing Fast Server. Blazing Fast Network.



Sorry - I'm not sure what you're asking. Are you saying you'd like the menu with the team members to be centred horizontally, rather than left-aligned as at present?
Sorry for not being clear. I want the team member to stay put when I resize the window. Thanks
█ ServerFlare | Blazing Fast Server. Blazing Fast Network.


The first thing you shoud do is remove the huge width here:
That's not helping your cause at all. If you remove it, the member boxes stay still in relation to the text.Code:#smallInforBar { display: inline-block; width: 7000px; }
I've made the changes and it dosn't seem to be working.
http://serverflare.com/main%20website/home.html
Also I've notice another problem when I click on the top Navigation Menu, it does not highlight the selected. For example when I select Home. The Service Tab is highlighted. When I click anything else the Service tab is selected.
█ ServerFlare | Blazing Fast Server. Blazing Fast Network.



That's because you have the class "active" applied to the Services <li> on each page.You need to remove it from the Services <li> and apply it to the current page <li> on each page.Code:<li class="active"> <a href="home.html">Services</a> </li>
I hope that makes sense - it sounds a little garbled to me.![]()
█ ServerFlare | Blazing Fast Server. Blazing Fast Network.


█ ServerFlare | Blazing Fast Server. Blazing Fast Network.


Just be careful of older browsers, like IE7 and under. They may need display: inline instead, if you care about them (I don't).![]()
█ ServerFlare | Blazing Fast Server. Blazing Fast Network.
Bookmarks