HTML CSS examples for CSS Layout:2 Column
Two-column, top-aligned, fixed width table layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> p{<!-- w w w.ja va2 s . c o m--> height:20px; color:#000000; margin: 20px 0px; color:#000000; } .frame{ width:310px; height:150px; background:#A0A0A0; } .number{ color:#8D0000; } .l{ float:left; } .r{ float:right; } .r{ width: 220px; } </style> </head> <body> <div class="frame"> <div class="l"> <p>Address</p> <p>Distance</p> <p> Ticket <span>price</span> </p> </div> <div class="r"> <p> <span class="number">12-26-3</span> this is a test test this is a test test </p> <p> <span class="number">23km</span> </p> <p> <span class="number">350</span> Yen </p> </div> </div> </body> </html>