Jump to content

About "CSS Navigation Bar" tutorial


utkesmer
 Share

Recommended Posts

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. Edited by utkesmer
Link to comment
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...