View Single Post
Old 03-28-2011, 07:10 PM   #3
SamL
I mess around with Epubs
SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.SamL once ate a cherry pie in a record 7 seconds.
 
Posts: 82
Karma: 1566
Join Date: Mar 2011
Location: Cambridge, MA
Device: mac, ipad, nook, kindle
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.
SamL is offline   Reply With Quote