FYI. I just read in Liz Castro's book, EPUB Straight to the Point, page 130, the following:
Because older ereaders weren't as good at supporting CSS, newer ereaders got into the extremely dubious habit of automatically overriding designers' CSS in order to compensate. In particular, properties like margin, padding, line-height, width, font-size, and font-family are routinely ignored for one's own good! Gee, thanks! Luckily, some ereaders will listen to you if you override their override by using!important.
1. To insist that your CSS rule take precedence, add !important to the end of it between the property/value pair and the semicolon.
margin: 0 .5em 0 0 !important;
Because this overuse of !important can cause some rules to override other rules in the same style sheet, it will be wonderful when these ereaders stop requiring its use. In the meantime, be aware that an !important declaration takes precedence over one that is not so important, even among your own rules in your own CSS file.
Just sayin'
|