HTML CSS examples for CSS Layout:Column Layout
Multi-column CSS layout with rounded borders
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .row {<!-- w ww . j a v a 2 s . c om--> border: 1px solid #ddd; margin-bottom: -1px; } .left { display: inline-block; width: 50%; border-right: 1px solid #ddd; } .right { display: inline-block; width: 49%; border-left: 1px solid #ddd; margin-left: -1px; } .top { border-top-right-radius: 4px; border-top-left-radius: 4px; } .bottom { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .outerBox { margin: 10px; } </style> </head> <body> <div class="outerBox"> <div class="row top"> <span class="left"> <b>Frank:</b> authors </span> <span class="right"> <b>Test:</b> test </span> </div> <div class="row"> <span class="left"> <b>asdf:</b> fdsa </span> <span class="right"> <b>asdfs</b> twe </span> </div> <div class="row"> <span class="left"> <b>asdf:</b> fdsa </span> <span class="right"> <b>asdf:</b> dsa </span> </div> <div class="row bottom"> <span class="left"> <b>Design:</b> design</span> <span class="right"> <b>VErr:</b> design </span> </div> </div> </body> </html>