DEV Community

Discussion on: 15 CSS Relative units, how many do you know? em, rem, ex, cap, ch, ic...

Collapse
 
andrewdtanner profile image
Andrew Tanner 🇪🇺

vi and vb sound interesting. If I understand correctly, you can base responsiveness on an element, rather than the viewport?

Collapse
 
bytegasm profile image
Bytegasm!

vi &vb` would be helpful for webpages in different languages.

And yes, you can base responsiveness on the parent element size by using %.