This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

359 points
5237d4ed80ff3348ed00144f_845495245
Submitted by
Amanda Riegel
almost 4 years ago

Curious as to whether EM or PX is used more?

I understand the difference between pixels and ems but I am curious to know from a professional stand point when building a site, if pixels are maybe outdated or inadequate? It seems to me it would make more sense to use EM considering the amount of smartphone/tablet etc. use. That way your site is properly viewable on any device. So I guess my question is- when is choosing to use pixels over EM and vice versa the smart way to go?
Thanks for reading :)


0 votes

permalink

Smart way to go would be to use em due to the logic you just used in your question. This is the inherent value of CSS. Here is a link to some nice info.
What does em mean?

694 points
5223eb58548c353597000051_914689490
Submitted by
Jeffry Dale Suter
almost 4 years ago


0 votes

permalink

I imagine em would be used more today because of all the different things that have access to the internet like smart phones and tablets

513 points
Picture
Submitted by
Martin
almost 4 years ago