WordPress.org

Forums

[resolved] Where to add CSS for wrapping text around image? (3 posts)

  1. icedub
    Member
    Posted 3 years ago #

    Hi There,

    I'm using Site5's 'Alltuts' theme, and was noticing that text doesn't wrap around my images even if I set them to. According to this, I need to add the following code to my styles.css as it is not currently there:

    img.alignright {float:right; margin:0 0 1em 1em}
    img.alignleft {float:left; margin:0 1em 1em 0}
    img.aligncenter {display: block; margin-left: auto; margin-right: auto}
    a img.alignright {float:right; margin:0 0 1em 1em}
    a img.alignleft {float:left; margin:0 1em 1em 0}
    a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

    My question is, where in the styles.css file do I add this code? any specific section? does it not matter?

    My site is http://cloud-coach.net

    Thanks so much!
    Ethan

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    it generally does not matter too much;

    just to make sure to overwrite any similar styles, add the code at the end of style.css;

    at least after any other styles with img

  3. icedub
    Member
    Posted 3 years ago #

    Thanks, worked great!

Topic Closed

This topic has been closed to new replies.

About this Topic