popeating
popeating

Reputation: 454

responsive image wrap around a div

i have a bootstrap grid setup, inside a cell of the grid there is a div floating on right with a width of 250px; of course the text inside the cell follow the floating div contour and wrap around it; sometimes i add to the text some images that should fill the cell (100% width, img-responsive class as bootstrap do). How can i have the image to stop at floating div if present on its side? in my setup the image fill the width correctly, and if the floating is not present (or the image start below it) it is all correct, but if the image start beside it, it will go beneath it. any suggestion?

Upvotes: 0

Views: 826

Answers (2)

Lars Mertens
Lars Mertens

Reputation: 1439

Try to give a height and a width to the div that is floating right or set the image in a new parent div and try to align these next to each other.

Upvotes: 0

hoppergrass
hoppergrass

Reputation: 66

Wrap the image in a div as well and float it to the left.

Upvotes: 0

Related Questions