How should one give lists height? (A list scrolling issue)

I am having trouble getting a list (whose contents overflow its div) to scroll correctly.

This fiddle demonstrates the problem:

Messing around with it suggests that the problem is that the list doesn't have a height. Setting an explicit height in the style field makes the list scroll as expected. However, I want the list to fill the entire drawer that contains it, so the height may change. What is the proper way to get this list scrolling correctly. Any help would be greatly appreciated, thanks.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!