I want to have an image centered on the page and its caption, the same width as the image, also centered. I can make the widths agree but my caption is always on the left, not centered. Is there a way to do this without putting the image and its caption intro a table?
The align:center seems to not help.
The relevant part of my CSS file is
Thank you
Robert
HTML:
<figure>
<img src="Mills_files/image002.jpg"; width="500";/>
<figcaption style="width:500px"; "align:center">In the mid 2000’s the remains of the race could be
seen clearly. </figcaption>
</figure>
The align:center seems to not help.
The relevant part of my CSS file is
CSS:
img {
display: block;
margin-left: auto;
margin-right: auto;
}
Thank you
Robert