• 201122 Aug

    CSS3 introduces a few new units. (Oh wait, I’ve said that before.) So, you’ve heard about px, pt, em, and the fancy new rem. Let’s look at a couple more: vw and vh.

    With vw/vh, we can size elements to be relative to the size of the viewport. The vw/vh units are interesting in that 1 unit reflects 1/100th the width of the viewport. To make an element the full width of the viewport, for example, you’d set it to width:100vw.

  • Leave a Comment

    (will not be published)

Hosting by: