CSS horizontal scrolling box

Posted by tony noriega on Stack Overflow See other posts from Stack Overflow or by tony noriega
Published on 2010-04-07T22:15:29Z Indexed on 2010/04/07 22:43 UTC
Read the original article Hit count: 282

Filed under:
|
|

im trying to create a horizontal scrolling box to create a "timeline" effect... but i cant seem to get it to scroll horizontally, versus the vertical scroll bar that shows up...thoughts?

#container{
     width:500px;
     height:250px;
     border:1px solid #cc61b8;
     overflow:auto;
}

.container-bits{
    width:250px;
    height:498px;
    float:left;
}

<div id="container">
     <div class="container-bits">Content Here</div>
     <div class="container-bits">Content Here</div>
     <div class="container-bits">Content Here</div>
     <div class="container-bits">Content Here</div>
     <div class="container-bits">Content Here</div>
     <div class="container-bits">Content Here</div>
</div>

© Stack Overflow or respective owner

Related posts about css

Related posts about horizontal