Container queries - specify styles based on element size!
Channel: Adam's websites
Date: 2023-03-29

Before, we had to use @media queries detecting the whole viewport and then calculate the sizes for elements. Now we can directly detect element style (size only, for now) and apply new rules just based on a named container!

Contact me anytime at:
adam@rajnoha.com

Support my work & fund me a good microphone:
https://liberapay.com/privacydeep
BTC: 1PM3pckn26KejhKHtpu56TyCJkL2k1zw6v
Doge: D6w2JjEsxPc4sTbmTHa5prhEkrzQMpt7ko