Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Code Errorz?


aaaron
 Share

Recommended Posts

Hey, so on my site, I am trying to make my navigation center, but I am having troubles. Here's what it looks like.

Sorry if I posted in wrong place.

![](http://www.freemmorpgmaker.com/files/imagehost/pics/b3202d753a0d64f406f41672d635ced7.png)

```
/*--General Navigation Info--*/
#navigation {
  position:center;
}

/*--Navigation Link Info--*/
#navigation ul {
  margin: 0;
  padding: 0;
  height: 45px;
  text-align: center;
}
#navigation li {
  display: center;
  margin: 0 5px;
}

/*--Navigation Link Information--*/
l#list-nav {
  list-style:center;
  margin:10px;
  padding:1px;
  width:525px
}
ul#list-nav li {
  display:inline;
  position: center;
}

ul#list-nav li a {
  text-decoration:none;
  padding:5px 1px;
  width:100px;
  background: #E1E1E1;
  color:#000000;
  float:left;
  text-align:center;
  border-left:1px solid #000000;
  border-right:1px solid #000000;
  border-top:1px solid #000000;
  border-bottom:1px solid #000000;

}

ul#list-nav li a:hover {
background: #1589FF;
color:#000000;
}

```
So, any ideas on how to fix it?
Link to comment
Share on other sites

@Robin:

> If you're doing a DIV list for your navbar then you'll have lots of fun. Took me like 4 hours messing around when designing this website before I gave up and just had to hardcode the centralisation offset.

Wrap it all in an outer div with a set width, and set the margin to auto.
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...