HTML CSS examples for CSS Widget:Div Table
CSS creating evenly spaced table using divs
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w w w .j a v a2 s .co m--> margin:0; } .showCases { background-color:Chartreuse; overflow:auto; } .showCases>div { width:47%; margin:21px; margin-right:3.6%; margin-left:3.6%; color:yellow; border:2px solid blue; display:block; float:left; } .showCases>div:last-of-type { margin-right:0; margin-left:0; } </style> </head> <body> <div class="showCases"> <div> Lorem </div> <div> Lorem </div> </div> </body> </html>