Hmmmm, still not working. It is still aligning left.
This is what my code looks like.
CSS:
Quote:
div.center-image {
margin-top: 0%;
text-indent: 0%;
text-align: center;
margin-bottom:0%;
}
img {
max-width: 100%
}
|
From the XHTML file:
Quote:
<p><span class="center-image"><img class="center-image" src="images/Stern_title_fmt.jpeg" alt="Stern_title.jpg" /></span></p>
|
Both the span and img class were generated from my object style in InDesign. I also tested this with the code:
Quote:
<p><div align="center"><img class="center-image" src="images/Stern_title_fmt.jpeg" alt="Stern_title.jpg" /></div></p>
|
and it displays exactly how I want it, but it won't validate. I am testing this in Digital Editions.