Seeking a solution where I can have a container that slides sideways without stacking in rows, I have exhaustively searched for answers using different keywords like single row, inline, flexbox, and grid but to no avail. Any assistance will be highly appreciated.
Currently, the container displays discrete lines of information in separate rows. Could moving the #carousel-window
higher up as a parentNode
solve this issue?
#carousel-window {
display: inline-table;
overflow: hidden;
overflow-x: hidden;
white-space: nowrap;
}
.carousel-grid-box
{
width:150px;
}
Here's my HTML:
<table style="width:100%;height:150;background-color:silver;color:black;" id="carousel-table" ajax="">
<tbody><tr><td>
<img style="height:100%;width:100;position:relative;z-index:2" src="' + leftScrollButtonImg + '" onclick="carouselScrollLeft(this)"></td>
<td><section id="carousel-window" style="width:100%;vertical-align:super;" ajax=""></section></td>
<td><img style="height:100%;width:100;position:relative;z-index:2" src="' + rightScrollButtonImg + '" onclick="carouselScrollRight(this)">
</td></tr></tbody>
</table>