Save 36% for Black Friday! Learn more

evansi

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Once you get used to thinking in rems, you'll find that it's actually quite easy to express familiar powers of two as fractions of 16, the root font size of every browser. But if you need to express any other value in rems—like odd numbers or very large numbers—you'll need to do the math by hand, convert it with CSS calc, or use a preprocessor like Sass. Alternatively, you can make your life easier using a trick with a root font size of 62.5%.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.