 <p>you can use simply this code:</p> <pre><code>div{ width:100vw; height:100vh; } </code></pre> <p>this code work like a charm... <code>:)</code></p> <p><a href="http://jsfiddle.net/mohsen4887/m3BSk/" rel="nofollow"><strong>jsFiddle</strong></a></p>