WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
[resolved] How To Center Primary Menu ! (6 posts)

  1. IR123
    Member
    Posted 1 year ago #

    Hello !

    I am trying to center the primary menu in the menu bar...

    I think I wrote 'text-align:center;' to more than 20 different places in the styles.css but nothing works.

    Any help ?

    Thanks !

    Ian

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

  3. IR123
    Member
    Posted 1 year ago #

    Thanks for the quick response, Andrew, I appreciate !

    I tried adding

    margin-left: auto;
    margin-right: auto;

    to several places in the styles.css but nothing gets centered.

    I am using Raindrops theme.

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    You're missing a width style. See the article again.

  5. nobita
    Member
    Theme Author

    Posted 1 year ago #

    Hi IR123

    Please try below style rules.

    Add to style.css last line

    https://gist.github.com/tenman/5380345

    Thank you

  6. IR123
    Member
    Posted 1 year ago #

    Excellent work to both of you !!

    Both options work perfectly !! :D

    Thank you !
    Ian

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.