tags:

views:

72

answers:

1

I'm looking to create a flexible width/height page layout with no window scrollbars!

Any content that will not fit on the page should be scrollable independently with the overflow property.

I've seen plenty of ways to construct flexible width layouts using just HTML and CSS.

The following site does a pretty good job on that front: http://ago.tanfa.co.uk/css/layouts/css-3-column-layout-v1.html

I wish to implement scrollable content within the 3 centre columns. The content should be scrollable not the column div.

e.g.

<div class="column">
    <h4>Title</h4>
    <ul>
        <li>These</li>
        <li>Items</li>
        <li>Should</li>
        <li>Be</li>
        <li>Scrollable</li>
        <li>If</li>
        <li>They</li>
        <li>Exceed</li>
        <li>The</li>
        <li>Column</li>
        <li>Height</li>
    </ul>
</div>

So far if the list exceeds the window height it pushes the footer off page.

I'm not to bothered about it working on old versions of IE, although that would score bonus points!

+1  A: 

You mean like this?

JSFiddle scrollable li.

Not sure if you can effectively hide the scrollbar just with CSS and HTML.

Kyle Sevenoaks
Kinda, but the scrollable content height can't be declared in pixels. It should be limited by the parents height
th3hamburgler
Updated my fiddle, check here: http://jsfiddle.net/QEr95/1/.Change the `.column` height and see if that's what you're after :)
Kyle Sevenoaks
Yes, thats the effect i'm looking for. However, the .column height needs to be 100% not a defined number of pixels.The list items should be scrollable when the window size is smaller than the contents
th3hamburgler
Ok, then this is what you're after: http://jsfiddle.net/QEr95/3/. Change the height of `.wrap` and see.
Kyle Sevenoaks
Sweeet! a bit of tinkering and we seem to have a solution.I've created a new fiddle with the previously mentioned flexible width layout.http://jsfiddle.net/xjWdN/Thanks!
th3hamburgler
Good job! Glad to help :)
Kyle Sevenoaks