2 mobile dev questions...

Associate
Joined
21 Oct 2008
Posts
1,679
Location
Mooching... in your house
hi guys... I've done a fair bit of research over the last few days while developing my mobile site, but there are 2 things I can't quite get my head around yet...

1) font sizes (this is my main question)... do I still do this in px? if I do it in em doesn't it need an initial px size as reference?

2) vertical sizing of divs - lets say I have a header div which I want to be a certain height on screen, do I size this in ems?

Might have another quick question tomorrow, but these are the ones bugging me right now :)

Ta :)
 
On the previous [few] mobile/responsive sites I've done, I've found that px is fine [though obviously not as easy as ems are for typographical subtleties like font scales].

Having said that, rems [relative-ems] are an even better choice. You still have to set a base body size, but you don't have to worry about the em-scale multiplication that occurs with nested elements.

After having read Mark Hurrell's article, I'll certainly be investigating this method for the next project I do.
 
Back
Top Bottom