View Single Post
Old 01-30-2014, 07:34 PM   #3
asgoreth
Junior Member
asgoreth began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2014
Device: Nook 1st generation
Quote:
Originally Posted by DiapDealer View Post
That doesn't change the margins in Sigil's Book View? Or are you talking about when viewing it on the Nook? Because I don't think the @page rule really affects Sigil's Book View. But you should see the effect on your Nook or in ADE.

I'm assuming the stylesheet you're adding the @page to is linked to all the xhtml files in you're trying to affect?

I have no idea why I've adopted the method I have; but I tend to assign left and right margin directly to the <body> element:
Code:
body {
margin-left: 3px;
margin-right: 3px;
}
and then use @page for some top and bottom margin:
Code:
@page {
margin-top: 5pt;
margin-bottom: 5pt;
}
It probably had something to with wanting to SEE (in Sigil) that I had the left/right margins the way I wanted them.
After reading your post I tried and succeeded in making the nook display more margin width with the @page tag by changing the values from px to pt, like so:

Code:
@page {
margin-left: 20pt;
margin-right: 5pt;
}
And yeah I totally understand you, it would be ideal to be able to have a WYSIWYG in the Sigil beforehand but apparently it is not possible.

However now I am wondering, is there a similar tag than can justify the text all over the book? Because now it seems to have decided to be left justified only in my nook while appearing justified in the Sigil book view.
asgoreth is offline   Reply With Quote