[Resolved] just can't get div elements to center horizontally on page

Home Forums Support [Resolved] just can't get div elements to center horizontally on page

Home Forums Support just can't get div elements to center horizontally on page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #224795
    Heidi

    I’ve made what I believe to be a very nice site with GeneratePress (thanks, Tom!), but just can’t get one set of div elements to do what I want them to do with CSS. The div elements are sprites with hovers.

    I need to center just the social links horizontally on these pages:
    http://www.mariasemple.com/
    http://www.mariasemple.com/contact

    And center these three book cover images horizontally on this page:
    http://www.mariasemple.com/books/

    Can’t figure out how to do it and still make it responsive!

    Thanks for any and all advice. Client is waiting anxiously….

    #224800
    Heidi

    I moved all the links to this staging site, so the site isn’t down:

    http://staging.mariasemple.com/
    http://staging.mariasemple.com/contact
    http://staging.mariasemple.com/books/

    #224844
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You might need to make the HTML classes more specific, but you just need to make the elements display inline:

    .inlineleft {
        display: inline;
    }

    The above applies to the books as well, they just need to be wrapped in classes and set to inline.

    #224978
    Heidi

    Wow! Thanks so much. I knew I was missing something! That worked for the social icons. I still can’t figure out the books page– I wrapped them in classes and set to inline, but no dice.

    #224988
    Heidi

    I figure it out– I had a class in the css that was conflicting. Thanks so much for what I think is the BEST template. I have three clients using it and loving.

    #224990
    Tom
    Lead Developer
    Lead Developer

    Awesome!

    Thanks! I’m glad you’re enjoying GP! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.