Category: HTML | CSS Tricks

Just getting started as a front-end developer? Awesome. HTML CSS Tricks are the foundation of building all websites. We have some stuff here that might be useful to you.

Convert pixel to rem if :root font-size is 16px 0

Convert pixel to rem if :root font-size is 16px

If you have :root { font-size: 16px; } You can use the following table to convert from PIXELS to REMS 10px 0.625rem 11px 0.6875rem 12px 0.75rem 13px 0.8125rem 14px 0.875rem 15px 0.9375rem 16px 1rem...