inherit
209176
0
Apr 28, 2023 3:24:54 GMT -8
Velociraptor
93
May 2014
velociraptor
|
Post by Velociraptor on Aug 21, 2017 6:35:41 GMT -8
Hi, I want to make the "base area" extend horizontally only Whenever a new card/image is added, it should extend horizontal not making a new row vertically. I have tried changing width, using overflow, hide overflow-x, I still can't make functional horizontal scroll for that div since it always extend vertically despite giving a maximum height. codepen.io/Velocodes/pen/RZMayEThanks in advance,
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Aug 25, 2017 3:42:20 GMT -8
Hi, I want to make the "base area" extend horizontally only Whenever a new card/image is added, it should extend horizontal not making a new row vertically. I have tried changing width, using overflow, hide overflow-x, I still can't make functional horizontal scroll for that div since it always extend vertically despite giving a maximum height. codepen.io/Velocodes/pen/RZMayEThanks in advance, Did you ever figure this out? Well, in case you didn't, in the class .gallery li remove the float left and add display:inline-block; .gallery li { display: inline-block;
width: 96px; padding: 0.4em; margin: 0 0.4em 0.4em 0; text-align: center; } And then in your class .CardList remove all widths/heights and add overflow:auto; and whitespace:nowrap;.CardList { border: 3px solid black; overflow: auto; white-space: nowrap;
} Worked on your codepen and on my test site. (at the bottom of the page but I added another div around the whole thing for a width constraint)
|
|
inherit
209176
0
Apr 28, 2023 3:24:54 GMT -8
Velociraptor
93
May 2014
velociraptor
|
Post by Velociraptor on Aug 25, 2017 11:06:54 GMT -8
No, I didn't figure it out. I knew I have to edit multiple lines of code, I didn't find the correct combo.
Big Thanks!!! I manage to fix another code based on this solution.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Aug 27, 2017 1:03:31 GMT -8
So you are good on this so I can label this as resolved?
|
|
inherit
209176
0
Apr 28, 2023 3:24:54 GMT -8
Velociraptor
93
May 2014
velociraptor
|
Post by Velociraptor on Aug 27, 2017 2:07:23 GMT -8
Yes, it is resolved.
|
|