HTML CSS examples for CSS Widget:Div Border
Wrapping border for whole div content
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #box {<!-- w w w . j a v a2s . c o m--> width:90%; height:auto; position:absolute; border:5px solid green; } .left { float:left; width:30%; } .right { float:right; width:30%; } .middle { float:left; width:30%; } </style> </head> <body> <div id="box"> <div class="left"> Left </div> <div class="middle"> Middle </div> <div class="right"> Right </div> </div> </body> </html>