Got a very amateur problem going on that I can't seem to find a remedy for.
Essentially, all I want to do is force my horizontal nav bar into the center - everything I've tried has failed to do this.
If I can, I also want to fix its position. (Might be a problem while centering it?)
Hi there,
Got a very amateur problem going on that I can't seem to find a remedy for.
Essentially, all I want to do is force my horizontal nav bar into the center - everything I've tried has failed to do this. If I can, I also want to fix its position. (Might be a problem while centering it?)
Here's the code I currently have: http://codepen.io/anon/pen/napGz
Any help would be appreciated! As I say, I'm an amateur but I can't find anything to get this working!!
My girlfriend pointed out that the HTML tag 'center' exists. -_-
ul{text-align:center}
You can set
}
BUT you have to give the ul a width for it to work. A % width or specific px width will do.
http://codepen.io/anon/pen/xsvwG
here's yet another variation of centered horizontal nav bar
http://codepen.io/anon/pen/qkBga
btw. if you want your anchors to be centered inside ul you do as @manojnaanak sugested like this
http://codepen.io/anon/pen/uEKLx
you can even do it without using unordered list if there won't be requirement for drop downs in your navigation
http://codepen.io/anon/pen/fDnKz