|
|
#1 |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2013
Device: all
|
@page { margin-top: 6pt; margin-right: 6pt; margin-left: 6pt; } Does this go in my Style0001.css file or does it have to be placed in every html file I want it applied to? If it has to go in each and every file what code would it be placed between? I currently have it in my style sheet but the Sigil book view is not affected when I make changes. All the other rules in my style sheet are working, so I was wondering why not this one? Last edited by EbookNoob; 05-08-2013 at 05:26 PM. |
|
|
|
|
|
#2 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,224
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
If you do use @page, older versions of ADE that have the page number in the right margin will have the page number shifted to the left. Because of this, it's not a good idea to use @page to set margins.
Oh and so others can see, this thread does not belong in the Sigil forum as it has nothing at all to do with Sigil. It belongs in the ePub forum.
__________________
Last edited by JSWolf; 05-08-2013 at 05:09 PM. |
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,720
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
)? I can move it
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,108
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
I personally put it in the stylesheet. The @page is a bit peculiar and personally I do not use it for left and right margins, only for top and bottom. If you do use it for left and right margins, you can have the effect that JSWolf describes. Left and right margin (should you want to set it), can be set in the HTML or BODY tag.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#5 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 2178910
Join Date: Dec 2012
Location: Bangkok, Thailand today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
|
I was under the impression that it is better to have the @page in it's own stylesheet. Some of the older (ADE?) devices ignore the entire style sheet if it has @page, so you keep it separate from all your other css...
__________________
Dion "Gnihcnip" - the act of "reverse pinching" to expand/zoom. Pronounced "Niknip" (the "g" and "h" are silent). "Live long and prosper." ~ Spock "What's that goat doing up in the clouds? " ~ Pilot
|
|
|
|
|
|
#6 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,720
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Calibre fairly recently, moved Page stuff to its own stylesheet
Probably for the reasons given
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,108
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
I have an old PRS-300 (a fairly old device and ADE based) and it does not ignore the @page.
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#8 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,720
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
My PEz is 2009, It does not ignore it either.
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#9 |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2013
Device: all
|
Can anyone tell me how to delete posts. The faq section says to hit the edit button but doesn't explain in detail what to do next. Sorry if I'm missing something obvious.
Last edited by EbookNoob; 05-09-2013 at 03:05 PM. |
|
|
|
|
|
#10 |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2013
Device: all
|
Thanks everyone! One more quick question? Should I set a bottom margin? It seems to me that these readers have automatic top and bottom margins built in because on the nook the book title is displayed along the top of the page and the page number is displayed along the bottom. With margins set to 0 on top and bottom the text still never overlaps into these areas. The only reason I set a top margin was due to the fact that the book title along the top of the screen looks like part of the body text if there isn't a bigger margin then what is already there. The text near the bottom of the page never even really gets close to the built in displayed page numbers on the bottom of the screen.
|
|
|
|
|
|
#11 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,108
Karma: 927511
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
|
It is actually up to personal taste. I have a small margin of 5pt to have some separation. I find it easier to read. YMMV
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#12 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,720
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
You could edit and add SOLVED to the END if that strike your fancy. Mods can Move or remove duplicate posts. The forum Mod list is at the bottom of the main forum page. Just slide one of them a PM
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#13 |
|
Antique Newbie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 308
Karma: 1531006
Join Date: May 2011
Location: JAPAN (us expatriate)
Device: Sony PRS-TI
|
I wasn't aware of this, is there a source somewhere for more info?
__________________
Only one thing is impossible for God: to find any sense in any copyright law on the planet. --Mark Twain |
|
|
|
|
|
#14 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 2178910
Join Date: Dec 2012
Location: Bangkok, Thailand today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
|
I get most of my info from MR, so it was here somewhere. I wasn't sure if it was ADE based or not...Also it could have been something I read when I was in the alternate universe...
Let me see if I can search it out.
__________________
Dion "Gnihcnip" - the act of "reverse pinching" to expand/zoom. Pronounced "Niknip" (the "g" and "h" are silent). "Live long and prosper." ~ Spock "What's that goat doing up in the clouds? " ~ Pilot
|
|
|
|
![]() |
| Tags |
| @page, css, margins |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding a css page to an e pub | holdit | Sigil | 7 | 04-04-2013 03:26 PM |
| css-style access every odd/even page | testuser | Library Management | 1 | 12-28-2012 03:30 AM |
| CSS animation executes before page | KLK | ePub | 2 | 12-13-2012 04:28 AM |
| ePub margins : @page vs stylesheet.css | Agama | Calibre | 1 | 08-16-2010 04:37 PM |