Responsive with CSS em

rem After we establish this known font size, we are safe to use regular ems throughout the module.

html {
  font-size: calc(0.6em + 1vw);
}

With your page made up of scalable modules, each grounded to the rem value, and they too will scale with the viewport.

.panel--large { font-size: 1.2rem; }

Design a responsive site with em-based sizing

Docs


- [homepage](https://gattiecani.github.io/renderizer) - This page: [https://github.com/gattiecani/renderizer/blob/master/docs/html/responsive.html](https://github.com/gattiecani/renderizer/blob/master/docs/html/responsive.html) - build: `ef6d1ee13f6ff4fb52d41d4fd9293f3161cc3c04` - site time: 2020-12-09 18:22:01 +0000