/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* CSS */ .block { width:100px; display:inline-block; margin:5px; background:blue } <!--[if IE 7]> .block { display:inline; } <![endif]--> /* HTML */ <div> <div> <div class="block">This is Block</div> <div class="block">This is Block</div> <div class="block">This is Block</div> <div class="block">This is Block</div> <div class="block">This is Block</div> </div> </div>