1
Guys I’m doing the front end of a responsive site, I read some materials on how to build responsive sites etc, I’m using 'EMS' instead of pixels in the font sizes, but they do not change according to the screen resolution.. Ex: I declared on the body:
body{
font-size: 62.5%;
}
And as I read, this technique would cause when I wanted to put the font size in 'EM' I would only do ex: 20px = 2em; 15px = 1.5em; but it didn’t work :/
Would you happen to have the source where you got this information? I’ve never heard of it before... P.S. I confirm that this strange technique works: http://jsfiddle.net/qfpke31c/1/ The problem is that attributing the font to a certain percentage seems to me to be relative to the current font size - and not to the current screen size.
– mgibsonbr
@mgibsonbr This technique assumes that browsers use
16px
as a standard offont-size
body, and that the values inem
are inherited. But it’s really not a technique for adjusting according to resolution.– bfavaretto