HTML CSS examples for CSS Layout:3 Column
Make 3 columns with the right column having two sections
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container{<!-- w ww . ja va2s .c o m--> display:block; width:100%; } .left{ border:1px solid red; height:100px; width:100px; display:inline-block; } .middle{ border:1px solid green; height:100px; width:100px; display:inline-block; } .right{ width:100px; display:inline-block; } .rightDiv{ border:1px solid yellow; height:40px;margin:10px 0; } </style> </head> <body> <div class="container"> <div class="left"></div> <div class="middle"></div> <div class="right"> <div class="rightDiv"></div> <div class="rightDiv"></div> </div> </div> </body> </html>