The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Using REM or EM on CSS?
Terminator
post Sep 7 2016, 10:30 AM
Post #1


Advanced Member
****

Group: Members
Posts: 218
Joined: 19-March 15
Member No.: 22,398



I always used em instead of pixels, but it seems that rem is a better option to use instead of em on CSS stylesheets.

Is it more of a best practice to use rem?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Sep 8 2016, 01:13 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



That's right. Also check out the vh and vw units while you're at it: https://www.w3.org/TR/css3-values/#viewport-relative-lengths
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 01:24 AM