Forum Moderators: open
EXAMPLE:
<img src="images/clientpic3.jpg" width="195" height="270" align="right">
I'm trying to shove the image to the right and wrap the text around the left hand side. Not sure if it works in all browsers. And if I was using a stylesheet, how would I do this?
Thanks!
img.r {
float:right;
}
and
<img class="r">
or inline:
<img style="float:right;">
<edit>
I just relized that I had unneccesarily turned the img into a block element -- but float: can apply to ANY element.
So BlobFisk, your code certainly will work as well. And in fact, if you want to have a nice caption above or below the image, the div comes in very handy. But strictly speaking, you can float an inline element all on its own.
</edit>