Quote:
Originally Posted by Notjohn
I make no claim to universality, but this has always worked for me:
div.caption {
margin-bottom: 1em;
text-align:center;
font-style:italic;
}
And then of course something like:
<div class="caption">O how pretty this looks, centered on the page!</div>
|
NJ, my sweet:
You are assuming that a) the image either fills the page, margin-to-margin, or b) that the image is also centered.
What if the image is floated right or left?
Hitch