- 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
13 Antworten
+ 6
If you want divs in horizontal mode write all divs in one div and in css write that div name and display: flex;
+ 3
Write your max width and height
+ 2
Sajid Ali
https://code.sololearn.com/W7RDVHvrlV05/?ref=appl
there is still some problem in the code like height is way too much.
+ 2
NOW PROBLEMS IS SOLVED
check :
https://code.sololearn.com/W0rx7Nxt4C6f/?ref=app
+ 1
div{
display: inline;
}
+ 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;}
0
And wrap all those div audio and img in a div tag as well .
0
@your editor horizontal code is height auto adjust...
I dont want height increase
0
How can I fix it ?
🤔
0
Do you want all divs on the same line in landscape mode?
0
Chris C. Yes,,,
Note : i dont want to body of height increase
0
so like what Abhay did but with full height?