HTML CSS examples for CSS Layout:Responsive Layout
Have a specific spacing between and take up the full width in a responsive design
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!-- w w w .ja va 2 s . c o m--> box-sizing:border-box; } .container { display:table; width:100%; } .container>div { float:left; width:34.4%; outline:2px solid red; } .container>div + div { padding-left:11px; } </style> </head> <body> <div class="container"> <div class="fooContainer"> <div class="foo"> Lorem ips </div> </div> <div class="fooContainer"> <div class="foo"> Lorem ipsum dolor </div> </div> <div class="fooContainer"> <div class="foo"> Lorem ipsum dolor sit am </div> </div> </div> </body> </html>