View Single Post
Old 12-26-2014, 07:50 PM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by dgatwood View Post
A UA stylesheet is provided by each book reading platform, and provides its default styles. You can't prevent them from being there; they just are. All you can do is override anything that you consider to be important.

A word of caution, though.... Some readers misbehave badly when you try to set the page or body padding/margins to non-default values. So when you zero the margin, do so on the img tag, not the body tag.
Thanks for the warning. The problem is that these kinds of stylesheet are not everywhere. If they cannot be discarded, at least is there a way to detect them automatically (other than using a heavy-handed Inspector) and warn the user?

Taking into account your advice not to set the body margin to zero to avoid some readers misbehaviour, I thought I could be possible to use a negative margin in the img tag so as to counter the unwanted body margin. Using frame styles, it can be a quick process. It could work only on the margin-top and margin-left values though but it's valid CSS.

Last edited by roger64; 12-26-2014 at 08:12 PM.
roger64 is offline   Reply With Quote