3raser Posted June 10, 2010 Share Posted June 10, 2010 When I'm using my <ul></ul> tags, how come it does: "<li>Home</li>" "<li>Contact Us</li>" instead of "<li>Home</li>" "<li>Contact Us</li>" like a navigation? Quote Link to comment https://forums.phpfreaks.com/topic/204438-navigation/ Share on other sites More sharing options...
phpchamps Posted June 11, 2010 Share Posted June 11, 2010 post your full code plz.. and css also if you have added any... Quote Link to comment https://forums.phpfreaks.com/topic/204438-navigation/#findComment-1070663 Share on other sites More sharing options...
haku Posted June 11, 2010 Share Posted June 11, 2010 You mean vertical instead of horizontal? That's the default display for a list. Float your <li> elements either right or left. Quote Link to comment https://forums.phpfreaks.com/topic/204438-navigation/#findComment-1070780 Share on other sites More sharing options...
Anti-Moronic Posted June 11, 2010 Share Posted June 11, 2010 If I get you right, you need to float your li elements. Can be done like so: <ul id="nav"> <li>nav item 1</li> <li>nav item 2</li> </ul> Then in your CSS: #nav li{float:left} You may also want to remove the default bullet points: #nav{list-style-type:none} Hope that helps. Quote Link to comment https://forums.phpfreaks.com/topic/204438-navigation/#findComment-1070963 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.