The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › I can't seem to align my nav bar center.
I always seem to have trouble with this – floats, relative, absolute,… erg… I know that I should use margin:auto on something to align the main nav bar center (I think on the UL), but that doesn’t work.
website is republicofmissouri.com
Maybe someone could direct me to a good resource to understand the issue better as well…
AHA! I figured it out. I had to add “Text-align:center” to the containing div instead of margin:auto;