- 1

How to o add many div(s) in horizontal way ? [Sovled]

Example : this is my code which vertical mode,, But i want to make as horizontal mode ? How to do ? Code bits : https://code.sololearn.com/WWFMbb4mIYWd/?ref=app

28th Jan 2021, 3:59 PM
Sajid Ali
Sajid Ali - avatar
13 ответов
+ 6
If you want divs in horizontal mode write all divs in one div and in css write that div name and display: flex;
28th Jan 2021, 4:03 PM
Սոֆի
+ 3
Write your max width and height
28th Jan 2021, 5:16 PM
Սոֆի
+ 2
Sajid Ali https://code.sololearn.com/W7RDVHvrlV05/?ref=appl there is still some problem in the code like height is way too much.
28th Jan 2021, 5:26 PM
Abhay
Abhay - avatar
+ 2
30th Jan 2021, 8:56 AM
Sajid Ali
Sajid Ali - avatar
+ 1
$♡F!💕 Abhay if we do this,, Now our height is increase as per div/width,, and If i set body or div height ,, its also increase height as per width. I mean in simple word : I want to increase of body width i And dont want to increase of body height.
28th Jan 2021, 5:15 PM
Sajid Ali
Sajid Ali - avatar
+ 1
div{ display: inline; }
29th Jan 2021, 12:45 PM
Gordon
Gordon - avatar
+ 1
You might want to use may another div to embody those multiple div tags or even a section then style it with CSS. Like this simple example below HTML <section> <div id="1">some stuffs</div> <div id="2">some stuffs</div> . . . <div id="n">some stuffs</div> </section> CSS section { display: flex;} div { with: xpx; height: ypx;}
30th Jan 2021, 7:45 AM
Kimbu Alain
Kimbu Alain - avatar
0
And wrap all those div audio and img in a div tag as well .
28th Jan 2021, 4:13 PM
Abhay
Abhay - avatar
0
@your editor horizontal code is height auto adjust... I dont want height increase
28th Jan 2021, 5:28 PM
Sajid Ali
Sajid Ali - avatar
0
How can I fix it ? 🤔
28th Jan 2021, 5:29 PM
Sajid Ali
Sajid Ali - avatar
0
Do you want all divs on the same line in landscape mode?
29th Jan 2021, 7:10 PM
Chris Coder
Chris Coder - avatar
0
Chris C. Yes,,, Note : i dont want to body of height increase
30th Jan 2021, 6:13 AM
Sajid Ali
Sajid Ali - avatar
0
so like what Abhay did but with full height?
30th Jan 2021, 8:48 AM
Chris Coder
Chris Coder - avatar