Thursday, January 22, 2009

How to make scrollable checkboxes

How to make scrollable checkboxes

Making scrollable checkboxes is pretty simple. Set them up how you would as if they were not scrollable, but surround them in a container element (be that a fieldset, p, div, or the like). Give the container a class, like scroll_checkboxes. In your stylesheet, you’ll want to style the container to define it’s height and make it scrollable. Note that this is just a starting point:


.scroll_checkboxes {
height: 100px;
padding: 5px;
overflow: auto;
border: 1px solid #ccc
}

No comments: