Phew!,
Hey everyone. I have a container div that contains other divs that are displayed inline. The parent div is set to a width depending on screen resolution. When the child divs overflow the parent div's width i want to have a horizontal scroll bar on the parent div.
The child css; which is from this webpage here: jquery sliding boxesCode:.parent { overflow-x:scroll; width:1260px; }
The children divs are slider boxes utilizing jquery. They line up next to each other but when when the children exceed their parents width, the remaining divs then wrap even though i have the css above on the parent saying i want a horizontal slider. Am I missing something?Code:/* Boxes */ .boxgrid { width: 325px; height: 260px; margin:15px; float:left; background:#161613; overflow: hidden; position: relative; } .boxgrid img { position: absolute; top: 0; left: 0; border: 0; } .boxgrid p { padding: 0 10px; color:#afafaf; font-weight:bold; font:10pt "Lucida Grande", Arial, sans-serif; } .boxcaption { float: left; position: absolute; background: #000; height: 100px; width: 100%; opacity: .8; /* For IE 5-7 */ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); /* For IE 8 */ -MS-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; } .captionfull .boxcaption { top: 260px; left: 0px; } .caption .boxcaption { top: 220px; left: 0px; }
Does anyone know why this could be?







Bookmarks