I have a #items div that wraps an entire .item chain. I want to display elements next to each other, and if they are larger than the page width, display a horizontal scroll bar.
<div id="somediv"></div> <div id="items"> <div class="item"> Item content </div> </div> <div id="someotherdiv"></div>
I tried something like this, but it does not work
#items{ overflow: auto; width:100%; height:200px; } .item{ float:left; }
I thought it was a way to do this, but I can't get it to work, so I am open to corrections and other ways.
html css
zmol
source share