WordPress.org

Ready to get started?Download WordPress

Forums

How to override CSS image floating alignment default? (2 posts)

  1. cestmoi6
    Member
    Posted 7 years ago #

    Newbie question: My CSS template apparently directs images to float to the right, which is fine most of the time. But what if I have a post with several images, and I'd like ONE of them (only) to be left-aligned instead? I have tried to edit the CSS style sheet and then add corresponding image directives (wrong word?) in the post, e.g. "class="floatleft" etc., using various recommendations I found online, but apparently I still don't know what I'm doing. Help!

  2. cestmoi6
    Member
    Posted 7 years ago #

    Solved my own problem (after about 200 trial-and-error attempts!!

    In the code view of my post, I added <img style="float:left; margin: 2px;"

    before the src="...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags