WordPress.org

Forums

How to center featured image? (4 posts)

  1. sladex
    Member
    Posted 1 year 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 1 year ago #

    Try:

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

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

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.