aaaron Posted March 20, 2011 Author Share Posted March 20, 2011 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 More sharing options...
Marsh Posted March 20, 2011 Share Posted March 20, 2011 Put that in code tags would be easier to edit. Link to comment Share on other sites More sharing options...
aaaron Posted March 20, 2011 Author Share Posted March 20, 2011 @Marsh:> Put that in code tags would be easier to edit.Ok, fixed. Link to comment Share on other sites More sharing options...
Bobosk Posted March 21, 2011 Share Posted March 21, 2011 ```position: relative;margin: auto;```I think that'll do it for you… Link to comment Share on other sites More sharing options...
Robin Posted March 21, 2011 Share Posted March 21, 2011 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. Link to comment Share on other sites More sharing options...
Chief Posted March 22, 2011 Share Posted March 22, 2011 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now