WordPress.org

Ready to get started?Download WordPress

Forums

Featured image/Thumbnail alignment with excerpt (3 posts)

  1. ThomasVig
    Member
    Posted 7 months ago #

    Hi everyone!

    I saw a lot of people have asked the questions already, but couldn't find the answer to my problem.

    I want to show the excerpt of my posts on the front page of my site. I am currently using the Responsive Theme from Cyberchimp.

    What I want is the Thumbnail align (left and top) with the text from the excerpt. I managed to float the image left, but impossible to align it with the top of the excerpt, here is a link to the front page of the website: http://www.coachingassembly.com (the issue is under "Orientation and Updates" at the bottom of the page").

    For the moment, this is the CSS code I have:

    img.wp-post-image,
    img.attachment-full,
    img.attachment-large,
    img.attachment-medium,
    img.attachment-thumbnail {
    	display: block;
    	width: auto;
    	float: left;
    	vertical-align: top;
    	padding-right: 20px;
    }

    I am not sure what to do. If you need any other info to be able to answer this problem, please let me know! Thank you in advance for your help!

    Thomas

  2. Dave Naylor
    Member
    Posted 7 months ago #

    Try adding:

    #content-blog img.wp-post-image {
        margin: 0 auto;
    }
  3. ThomasVig
    Member
    Posted 7 months ago #

    Thanks so much! You are a genius!
    Happy New Year!

Reply

You must log in to post.

About this Topic