css3 container height and width only viewport code example Example: set element equal to the size of the viewport .container { height: 100vh; overflow: auto; }