Whoa
Reposted from
CSS-Tricks*
Getting the viewport size in CSS ain't a new trick, but storing it as a variable and using it to position elements on the page opens up a lot of new tricks.
Here's @monknow.bsky.social using it to fluidly position elements on a page without overlapping.
css-tricks.com/typecasting-...
Here's @monknow.bsky.social using it to fluidly position elements on a page without overlapping.
css-tricks.com/typecasting-...
Comments