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? 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... 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. 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. Link to comment https://forums.phpfreaks.com/topic/204438-navigation/#findComment-1070963 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.