J
jersie0
How do I make an image tightly align itself to the right side of, for
example, a paragraph?
Let's say I have this html:
<p>
A very short paragraph.<img style="float: right" src="image.jpg" />
</p>
Unless I play with my margins, or perhaps put the above within a DIV,
the image will float way out at the right margin, instead of tightly
aligning to the end of the line.
Obviously, for longer paragraphs, this wouldn't be an issue, since the
paragraph would go all the way to the right margin.
example, a paragraph?
Let's say I have this html:
<p>
A very short paragraph.<img style="float: right" src="image.jpg" />
</p>
Unless I play with my margins, or perhaps put the above within a DIV,
the image will float way out at the right margin, instead of tightly
aligning to the end of the line.
Obviously, for longer paragraphs, this wouldn't be an issue, since the
paragraph would go all the way to the right margin.