Forums

[resolved] Horizontal text alignment with picture (5 posts)

  1. atomdreams
    Member
    Posted 8 months ago #

    Hi,

    Using the standard WP Post editor I've inserted a photo and clicked on alignment. The text wraps around correctly except it will not align horizontally to the top of the picture. It always aligns a little above instead of horizontally flush with the top of the photo. How do I correct this? Thanks in advance.

    site
    http://www.rockreview.eu

  2. vtxyzzy
    Member
    Posted 8 months ago #

    Try adding this to the end of style.css:

    .alignleft img, img.alignleft {
        margin: 0 1em 1em 0;
    }
  3. atomdreams
    Member
    Posted 8 months ago #

    Thanks for the help, but it didn't work.

    The text isn't horizontally aligning evenly with the top of the photo. It's always half a text line above the photo.

    see the example below

    http://rockreview.eu/?cat=9

  4. vtxyzzy
    Member
    Posted 8 months ago #

    I do not see the code I posted at the end of style.css. When I place it there in the Firefox debugger, the text aligns properly.

    Please add the code to the end of style.css and leave it there.

  5. atomdreams
    Member
    Posted 8 months ago #

    Hey,

    I forgot to clear the browser cache the first time around. It works perfect now. Thanks for the help, you're a hero. :)

Reply

You must log in to post.

About this Topic