/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<style type="text/css"> div { display:inline; } div span { display:inline-block; height:100px; width:200px; background: #CCCCCC; } .container { display:block; width:800px; text-align:center; margin:0 auto; background:#FFFFFF; } </style> </head> <body> <div class="container"> <div class="left"><span>asdfasdfasdfsad asfsad</span></div> <div class="middle"><span>asdfasdfasdfsad asfsad</span></div> <div class="right"><span>asdfasdfasdfsad asfsad</span></div> </div>