Consider using 100vw / 100vh CSS Heres the gist. Make it up to the developer and use pixels as default value but dont disallow vh/vw.less - It is possible to use vh minus I have following CSS rule in a Less file: .container min- height: calc(100vh - 150px) Which doesnt work at all. As you can see, the 100 width plus 10px padding exceeds the actual available width, so here is the correct code how it should beIn this example the image with its paddings, margins and border fits inside the available container and 100 is not exceeding it.vh-minus-pixels-in-a-css-calc I tried modifying my CSS the way given in the above thread, so the line looks like: height:calc(. 100vh - 200px) height:calc("100vh - 200px") This seems to be working fine. So is this an issue with the CSS interpreter of PhantomJS? CSS: Setting width/height as Percentage minus pixels.CSS 100 height with padding/margin. Div width 100 minus fixed amount of pixels. The following experimental keyword values have been introduced in CSS3. available. Height is equal to the containing block height minus the current elements margin, border, and padding.min-height: 250px min-height: 50 min-height: 100vh min-height: inherit It does work indeed. Issue was with my less compiler. It was compiled in to: .container min- height: calc(-51vh) . Fixed with the following code in less file: .
container min- height: calc("100vh - 150px") . Thanks to this link: Less Aggressive Compilation with CSS3 calc. You should try the well known Clearfix hack to handle height issues, because you need to "clear" parents elements to get that full 100 height you need.100 height div scrolls up after resizing. Stretch image height css. css columns with equal height. css fluid-fixed column layout.