View Single Post
Old 03-15-2012, 09:37 AM   #5
Keroberos
Zealot
Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.
 
Keroberos's Avatar
 
Posts: 128
Karma: 238654
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
Quote:
I was using px for spacing, which worked great on all the e-ink readers, but did not look quite so hot when I took it to the Samsung player.
That's due to pxs being an absolute size based on the size of the pixels on the screen, the Samsung player has the same horizontal resolution as the e-ink readers (800px), so the spacing will look different.

One thing with percents and ems that they are interchangeable, being based on the size of the parent element (1.5em is the same as 150%), but that means they will be different based on the size of the parent, i.e. a 1.5em or 150% margin on an element with a 2em size will be smaller than a 1.5em or 150% margin on an element with a 3em size.

Another thing that can help which is more html than CSS is to use correct tagging, (paragraphs in <p> tags. headings in <h1>-<h6> tags, etc). It makes it easier to go back and know what your looking at later, and makes it easier to convert to other formats if needed.
Keroberos is offline   Reply With Quote