![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
Units of measurement
What is the best way to keep a proper layout wherever the app, support and user's preferences are.
I know each reader devices and app can change the layout and the user can change almost everything. But I want little control over the proportion like spaces before and after a paragraph or a tiltle. Margin around a table or a pic. What is the best way to keep them clean: em, px or % ? |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
It depends on what you want. Pixels are almost never a good choice, since they might depend on the device resolution (although strictly, the CSS spec gives them a sort of absolute meaning, but I wouldn't trust the reading applications to be aware of this).
If you want something to depend on the font size (probably indents or vertical spacing), use em. If you want something to depend on the screen size (maybe some margins), use %; for relative font sizes you can use % too. If you want something to have some absolute size (some other margins, or line widths, or picture size), use real units, like in or mm. Whatever you do, you won't be able to "keep a proper layout wherever the app, support and user's preferences are", there will always be an app that messes everything, and users with extreme (or silly) preferences. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You could make it a pdf. It forces exact locations and spacing.
The reflowable nature of epubs and unpredictable interpretations of the epub by reader software makes exact predictions of what will occur at ALL times impossible. But you trade one set of problems for another. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
@mrmikel: thanks for the input! In facts, I'm not looking to "force" the layout but have a certain constancy between each reader. I know it's impossible to have the same layout on every plateforms, reading apps...
I'm trying to avoid PDF. I prefer ePub problem over PDF! ![]() |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
@Jellby: Thanks for the help. I'Ll try to use those advices for my ePub!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
Ofr padding and borders of a table, wich unite I must use, em or % ?
|
![]() |
![]() |
![]() |
#8 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I'd probably use em (changes with font size) or mm (absolute, independent of font and screen sizes). Test the effect in a browser, changing the font and window sizes and decide which behaviour you like best.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Battery life, simple and easy specification, calculation and measurement | j.p.s | General Discussions | 12 | 06-13-2011 05:11 PM |
Target Measurement System | brewt | Calibre | 3 | 12-21-2009 10:32 AM |
Refurbished Units | ooo | Sony Reader | 7 | 09-10-2009 07:37 AM |