Better Sizing and Spacing With rems
While pixels have long been the go-to unit for declaring font-sizes, the truth is that, these days, it’s not the best choice. What if, instead, we could declare our sizes and spacing dynamically, based upon the font-size of the root HTML element? Think about the possibilities. Your layout could scale seamlessly, from mobile to widescreen devices.