SirChick Posted December 28, 2007 Share Posted December 28, 2007 Ok i have a nav bar which has "Locked" features and it shows the word "Locked" when it is locked. Now say they unlock it and the word changes to the feature which is either shorter or longer than the word "Locked" all the other nav bar links move with it which i do not want to happened.. i need to be "fixed" in position as such... How can i stop this from happening.. i know alot of CSS coders say they get this problem also so.. perhaps theres a pro out there who can suggest something..(ps it would need to work on cross browsers) Hope you can help.. Quote Link to comment https://forums.phpfreaks.com/topic/83471-nav-bar-problem/ Share on other sites More sharing options...
SirChick Posted December 28, 2007 Author Share Posted December 28, 2007 I might have a better way to explain what i mean here: If i remove "locked" link from the nav bar then the links after it move left rather than stay where they are its like this: My House | Locked | Log Out Becomes: My House | Log Out | This is what i actually want it to do how ever: Becomes: My Houses | | Log Out My CSS is this: #wrapper { width: 700px; margin: 0 auto; } #navbar { border: 1px solid #ccc; margin: 0px 5px 0px 5px; padding: 4px; background-color: #A3A38F; } #header { margin: 5px 5px 5px 5px; } HTML <div id="topheader"> <ul> <li><a href="#">My House</a></li> <li><a href="#">My Phone</a></li> <li><a href="#">City</a></li> <li><a href="#">Newspaper</a></li> <li><a href="#">Locked</a></li> <li><a href="#">Laptop</a></li> <li><a href="#">Stats</a></li> <li><a href="#">Locked</a></li> <li><a href="#">Log Out</a></li> </ul> </div> Please let me know if theres anything else in script you need to see to help you Quote Link to comment https://forums.phpfreaks.com/topic/83471-nav-bar-problem/#findComment-424750 Share on other sites More sharing options...
TheFilmGod Posted December 28, 2007 Share Posted December 28, 2007 put locked at the end? Use php to parse the html that adds a "space", so it would work. - and make sure the css nav bar is display: block, with a fixed width. Inline won't work. Quote Link to comment https://forums.phpfreaks.com/topic/83471-nav-bar-problem/#findComment-424852 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.