epsalon
epsalon

Reputation: 2294

How to start a paragraph after an image?

I am trying to make my wordpress HTML laid out as follows:

IMG paragraph 1 paragraph 1 
IMG paragraph 1 ..
IMG
IMG

paragraph 2...

where all the IMG refer to a single image and the second paragraph starts below the image. Is that possible?

Upvotes: 1

Views: 2392

Answers (1)

Brad
Brad

Reputation: 163262

Yes, float your image left, and set paragraph 2 to clear. In your CSS:

.left_img {
    float: left;
}

.clear {
    clear: both;
}

Set the class on your image to left_img, and on your paragraph, clear. Obviously, choose class names that fit with what you are trying to do... this is just an example.

Upvotes: 2

Related Questions