|
View Poll Results: What unit should I use ? | |||
em | 5 | 55.56% | |
pt | 1 | 11.11% | |
px | 1 | 11.11% | |
none of the above | 1 | 11.11% | |
it doesn't matter, all are ok | 1 | 11.11% | |
Voters: 9. You may not vote on this poll |
|
Thread Tools | Search this Thread |
05-04-2010, 04:11 AM | #16 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Yes, there are 12 font sizes to choose from, and the choice is global, for all books, until you change it again. Relative font sizes are always relative to the size you choose. I don't know about absolute font sizes, though.
|
05-04-2010, 04:51 AM | #17 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
What you probably DON'T want is for your overall PAGE margins to scale with the text. I always define page margins in points, so they are fixed. |
|
05-04-2010, 06:04 AM | #18 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
If you use em in @page the behavior is undefined and anything can happen. It is illegal to use it. So it is not as you have a choice.
|
05-04-2010, 06:33 AM | #19 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
05-04-2010, 09:58 AM | #20 | |
Guru
Posts: 714
Karma: 2003751
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Glo HD
|
Quote:
For example, what's wrong with the following practice: - "normal" text: margin-left==margin-right==5% (of the page width) - poetry: margin-left==margin-right==10%(of the page width) |
|
05-04-2010, 11:22 AM | #21 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You generally want a page margin to be a fixed width. In your case, 5% of the page.
When you indent one line of poetry relative to another line, you want the amount of indentation to scale with the text: eg: Code:
Line 1 Line 2 Line 3 Line 4 |
05-04-2010, 12:05 PM | #22 |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
So when I use something like "top margin 5%", will the 5% always be based on the page size ? I have no problem to change my page margins from em to %, points or pixel. I think pixel would be better, because afaik, points is a fixed unit. I mean, when I hear the resolution of my reader is 800x600, this means pixel, right ? In that case, using margins might be even easier, since I have the 800x600 as a starting base ...
|
05-04-2010, 12:18 PM | #23 | |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
You can use pixels, but then the real dimension depends on the screen resolution. Points or millimeters should be device-independent. |
|
05-04-2010, 10:12 PM | #24 | |
Guru
Posts: 714
Karma: 2003751
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Glo HD
|
Quote:
|
|
05-04-2010, 10:41 PM | #25 | |
Guru
Posts: 714
Karma: 2003751
Join Date: Oct 2008
Location: Ottawa, ON
Device: Kobo Glo HD
|
Quote:
8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin' Last edited by Ankh; 05-04-2010 at 10:43 PM. |
|
05-05-2010, 06:13 AM | #26 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
05-05-2010, 06:37 AM | #27 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
No, not with @page, I mean that if you define left and right margins for <body> you get in practice margins for every "page", because everything is inside a <body> (except for the page numbers of ADE).
|
05-06-2010, 11:09 AM | #28 | |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Quote:
I never set the base font size in my CSS files, so I assume that the text will be displayed at 1em. But if I set some text to have a font size of, say, 80%, it displays it at 80% of what I assume is the base font size. |
|
05-08-2010, 08:43 PM | #29 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Not talking about css settings here, I was talking about whether the user can choose to decrease the size. This isn't possible on Sony devices, but according to Jellby it can be done on Cybooks ereaders, and possibly others.
|
05-10-2010, 04:15 AM | #30 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
I'm not sure I understand charleski, the original poster was talking about setting the default size in an external CSS style sheet, so I assumed that was what you were talking about.
Are you refering to setting the font size within the style section in each XHTML file? or are you talking about something else? |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ideal base font size for ePub? | eosrose | ePub | 5 | 05-28-2010 12:45 AM |
ebook-convert doesn't recognize base-font-size parameter | dracodoc | Calibre | 6 | 12-25-2009 10:26 PM |
LIT->LRF Conversion - Quirky Base Font Size Setting | orion2001 | Calibre | 6 | 09-27-2009 12:10 AM |
Base Font Size not Working | Colaveare | Calibre | 0 | 05-06-2009 02:09 AM |
Global html2lrf/recipe base-font-size? | streaml1ne | Calibre | 1 | 07-06-2008 11:59 AM |