• Resolved icedub

    (@icedub)


    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 https://cloud-coach.net

    Thanks so much!
    Ethan

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    Thread Starter icedub

    (@icedub)

    Thanks, worked great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where to add CSS for wrapping text around image?’ is closed to new replies.