css - How do you make this style without table? -
layout this:
abc 1 2 bcd 1 2 3 4 eaasd 5 6 i heard it's not make layout table, in case?
you can make div based layout following way. , use display:inline-block.
.main > div { display: inline-block; padding: 5px; width: 50px; } <div class="main"> <div>abc</div><div>1 2</div> </div> <div class="main"> <div>bcd</div><div>1 2 3 4</div> </div> <div class="main"> <div>eaasd</div><div>5 6</div> </div> hope helps.
Comments
Post a Comment