0

how to put 2 div tags side by side in html ?

1st Nov 2016, 2:28 PM
lakhan
lakhan - avatar
2 Respuestas
+ 1
best way is use float:left for 1st div and float: right for 2nd div
4th Nov 2016, 8:09 AM
Shyam
Shyam - avatar
0
there are many ways 1: div { display: inline-block; } 2: div { float:left; width:50%; } 3: body { display:flex; }
4th Nov 2016, 5:22 AM
Omar Campistrano
Omar Campistrano - avatar