WordPress.org

Ready to get started?Download WordPress

Forums

How to center featured image? (4 posts)

  1. sladex
    Member
    Posted 9 months ago #

    Hello guys,
    Can i ask how to center images in my posts?
    here is my site: http://disney-quotes.com

    I've tried changing:

    .stumblr-image { display:inline; float:left; margin-left:-40px; margin-bottom:10px;}

    i changed FLOAT:left; to FLOAT:none; but nothing. when you make it right it works.

    I'm using this theme:
    http://www.eleventhemes.com/stumblr-theme/

  2. Dave Naylor
    Member
    Posted 9 months ago #

    Try:

    .stumblr-image {
        text-align: center;
    }
  3. martcol
    Member
    Posted 9 months ago #

    try removing your styles for .stumbler-image and add this:

    .attachment-stumblr-large-image {
        display: block;
        margin: 0 auto;
    }
  4. sladex
    Member
    Posted 9 months ago #

    WPRanger thank you, your way worked just perfect all pictures are centered now.
    Thank You very much,.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.