View Single Post
Old 01-11-2010, 12:51 PM   #47
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by tompe View Post
I tried to read the CSS specification and it was hard to see what is the correct behavior. If @page is not specified is then the margins assumed to be 0. If that is correct I think that the behavior is correct. It seems reasonable that the "top box" is the whole area and @page specifies margin relative to the top box.
I don't think is wrong (spec-wise) to have a zero top margin, but if they included a default non-zero side margin, they should have done the same with the top margin.

Also, to override the side margins you have to use a class (or id or something else) in the body element of the book, which is not very nice, it is not enough just to add a CSS style to the unnamed body element.
Jellby is offline   Reply With Quote