HTML CSS examples for CSS Widget:Div
Align Div side by side
<html> <head> <style> .brand, .model {<!--from w ww. j a va2 s .co m--> float: left; padding: 5px; width: 250px; height: 40px; text-align: center; } .brand { background: rgba(88, 0, 0, 0.5); } .model { background: rgba(0, 88, 0, 0.5); } </style> </head> <body> <div class="brand"> test </div> <div class="model"> test </div> </body> </html>