2 div one line | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

2 div one line

any body help me to know how i can put more than one <div> in one line. when i add new div its going down.

11th Aug 2016, 8:04 PM
Abid Hussain
Abid Hussain - avatar
4 Respuestas
+ 1
div is by default display as block , you can make it inline by style display: inline; or you can use span which is by default inline
14th Aug 2016, 7:45 AM
Subhas Sing
Subhas Sing - avatar
0
It is because by default some margin or padding is given to div tag,you can change it using css
13th Aug 2016, 10:03 AM
Pankaj Bhardwaj
Pankaj Bhardwaj - avatar
0
yes display inline block ok thanks
19th Aug 2016, 1:39 AM
Abid Hussain
Abid Hussain - avatar
- 1
you have level 3
11th Aug 2016, 8:26 PM
El Hannach Mouhcine
El Hannach Mouhcine - avatar