HTML CSS examples for CSS Widget:Header
Inline divs with fixed headers / titles
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .homeBoxes {<!-- w w w.j a v a 2s.co m--> width: 49%; display:inline; float:left; overflow-y:scroll; min-height:300px; max-height:350px; margin-right:5px; margin-left:5px; margin-top:10px; margin-bottom:10px; overflow: hidden; } .title { margin:0 auto 0 auto; padding:2px; font-size:20px; background-color:#f36f25; } </style> </head> <body> <div class="homeBoxes"> <div class="title"> Title </div> TEXT </div> <div class="homeBoxes"> <div class="title"> Title </div> TEXT </div> </body> </html>