utkesmer Posted June 29, 2011 Share Posted June 29, 2011 http://w3schools.com/css/css_navbar.aspAt the top part of the tutorial, there is a horizontal navigation bar sample which has no space between links.http://w3schools.com/css/tryit.asp?filenam...zontal_advancedIn this example, there is a bar which has a little space (like borders) between links.I've tried to edit the second one to make it same as the first one, but I couldn't. How can I?Sorry for my grammar by the way.Thank you, Utku. Link to comment Share on other sites More sharing options...
jeffman Posted June 29, 2011 Share Posted June 29, 2011 There are two commonly used ways to align list items horizontally. 1, use the display:inline rule. That is the one in the second example. 2, use the float:left or float:right rule. The float rules eliminate the spaces. Link to comment Share on other sites More sharing options...
Ingolme Posted June 29, 2011 Share Posted June 29, 2011 You can avoid spaces by putting all your list item elements together without any spaces between them in the code. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.