Not to pick on Digital Editions, but I noticed a problem in trying to center some images. The following works OK in DE.
<div align="center"><img src= ... /></div>
-----
Using this: <div class="img"><img src= ... /></div>
And this in a stylesheet: div.img { align: center; }
Works OK in DE.
-----
Using this: <img class="center" src= ... />
And this in a stylesheet: img.center {display:block; margin:auto; }
Does not work in DE, but does in Firefox.
-----
Am I mistaken, or aren't all three valid XHTML? If so, shouldn't Digital Editions display all three the same? The reason for preferring the third method is that it makes the XHTML code simpler and is less for me to type.
|