HTML CSS examples for CSS Layout:Responsive Layout
Responsive Equal height div without specifying the height
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .outer {<!-- w ww . java 2s. co m--> height:100vh; } .left { background-color:Chartreuse; width:100%; height:100%; margin-right:51%; } .right { background-color:yellow; height:51%; margin-left:51%; } .right.bottom { background-color:blue; } </style> </head> <body> <div class="outer"> <div class="left"> <div class="right"></div> <div class="right bottom"></div> </div> </div> </body> </html>