responsive

Viewport height and width units in modern CSS

Viewport height and width units in modern CSS

As I keep encountering CSS codebases and theme definitions that solely use the traditional viewport units vh and vw, I thought about writing a blog post about the powerful tools we have on our disposal nowadays, that can make our lives easier and our CSS code better. The good old viewport units Long story short, for many years we've been using vh and vw to define something as percentage of the initial viewport height and width. For example, if we wanted to fill the entire viewport of all devices with green, we could do the following: .big-fat-green-element { background: green;…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.