I’m trying to make a simple slider so I’m using a div (#container) to hold the items that I need to slide (this div will have overflow:hidden), a div (#slider) that I want to move so that all the items will be moved together, and divs that fit in the slider.
I want the slider’s width to expand until all the items fit to the same row with float:left.
I have this jsFiddle : http://jsfiddle.net/rBFPL/5/ and I would need some help to make the red divs on the same row and the cyan div expand its width.
Can you help me with this?
Update: http://jsfiddle.net/HCYPD/3/