View Single Post
Old 04-28-2008, 05:56 AM   #3
IceHand
Linux User
IceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavens
 
IceHand's Avatar
 
Posts: 323
Karma: 13682
Join Date: Aug 2007
Location: Germany
Device: Kindle 3
Quote:
Originally Posted by Jellby View Post
For instance, I wanted to have some space above headings (H1, H2, etc.), but it seems the Cybook won't recognize STYLE or CLASS attributes, so I'd be left with introducing empty lines, which is generally bad style. Also, can I have an horizontal rule that takes only half of the screen and is not centered? What about a paragraph or DIV with larger margins?
No, the Cybook and Mobipocket do support style and class attributes to some extent, e.g. <h1 style="margin-top:2em;">Header</h1> works fine. How did you try to make margins?

Horizontal rules seem to be always centered, yes.
Paragraph with larger margins: <p style="margin:5%">Text</p> but for some reason this does not affect the right margin.

I don't know if there's a list of all the supported CSS attributes, I always did it with trial and error.
IceHand is offline   Reply With Quote