WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Centering an Unordered List (5 posts)

  1. Virat Parikh
    Member
    Posted 1 year ago #

    Hello,

    I know what you're thinking, this has been answered previously. I've looked at those answers and tried implementing the code but it hasn't worked for my situation.

    I have a nav bar (the dark grey one) at http://wp.vacau.com/ that I'm trying to center up.
    That's all I'm trying to do, I've tried using text-align: center; and various other attributes.

    Any help would be appreciated!
    Thanks,
    -Virat

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    You can't centre it automatically, using margin: 0 auto; because you have position: absolute;.

  3. Virat Parikh
    Member
    Posted 1 year ago #

    Right, but when I get rid of the position: absolute; the whole bar disappears.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Yes it does, you can solve this by applying overflow: hidden.

  5. Virat Parikh
    Member
    Posted 1 year ago #

    Alright, I'll give that a shot.
    Thanks Andrew!

Topic Closed

This topic has been closed to new replies.

About this Topic