Forums

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.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #147302
    Josiahmann
    Participant

    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…

    #147306
    Josiahmann
    Participant

    AHA! I figured it out. I had to add “Text-align:center” to the containing div instead of margin:auto;

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.