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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -