Welcome Guest, Not a member yet? Register   Sign In
Horizontally scrolling div
#1

[eluser]richzilla[/eluser]
Hi all, im attempting to make a div scroll horizontally on the page, depending on the amount of content it contains. As far as i can tell, this should work:

Code:
.house-view .content
{
    float: left;
    margin-left: 20px;
    width: 615px;
    overflow-x: scroll;
}

the divs inside the scrolling div are styled like this:

Code:
.house-view .content .house
{
    float: left;
    margin-right: 5px;
    width: 55px;
}

But the .content div never scrolls. When it is full, all of the .house divs just break onto a new line. Can anyone tell me where im going wrong?

Thanks


Messages In This Thread
Horizontally scrolling div - by El Forum - 03-23-2010, 03:44 AM
Horizontally scrolling div - by El Forum - 03-23-2010, 05:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB