WordPress.org

Ready to get started?Download WordPress

Forums

Spun
Center Circles, Keep Links Right (2 posts)

  1. clu320
    Member
    Posted 1 year ago #

    Hi there,

    I wanted to make my circles on my homepage centered so I entered this into my custom CSS plugin.

    #masthead img,
    .main-navigation,
    #main {
    display: table;
    margin: 0 auto;
    float: none;
    width: auto;
    }

    #colophon {
    text-align: center;
    }

    It was successful, however, how my "ABOUT ME" and "HOME" links have been centered as well but I would prefer to keep those aligned to the right.

    My site is:
    carolynlu.com

    Any help is appreciated. Thank you!

  2. Hey. If you only want to centre the circles, then you only need to target the #main selector in your CSS, you don't need to target #masthead img or .main-navigation. Editing your above CSS accordingly would leave it as:

    #main {
    display: table;
    margin: 0 auto;
    float: none;
    width: auto;
    }

    Let me know if this works or if you need any more help. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.