Previous Message
Next Message

is use of rem bad?

Sent by Karl DeSaulniers on 21 July 2016 04:04


That is incorrect I believe. FWIU Em is based off of the first parent element to declare a 'px'
based declaration of same type. 
font-size
width
padding
etc..

Otherwise it is set by the body and default browser px size. Same with percent. 

You are correct however, you can't just blindly convert rem to em.
My apologies. I was thinking of percent to em and back. 
You can convert those with no problems. 

I never use rem, so probably shouldn't have shared.. :(
sry..

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com




> On Jul 20, 2016, at 9:01 PM, Philippe Wittenbergh [EMAIL-REMOVED]> wrote:
> 
> For the `em unit` it is based on the font-size of the element itself.

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: