.Net ramblings
# Monday, 01 August 2005
Scrollable DIV css code, useful for big checkboxlists etc
DIV.scroll
{
	height: 9em;
	overflow: auto;
	border: 1px solid #666;
	background-color: #e8e8e8;
} 

I ran into a problem designing a web app that had a few checkboxlists, and when the real data got imported, the checkboxlists took up most of a page with all the entries!  this is obviously no good, but the app still needed a checkboxlist rather than a single-select dropdownlist, so i found this css code that you can apply to a DIV wrapped around the checkboxlist.  you can set a width if you like but i just let it fill whatever container the div is already in. 

works in firefox and IE6 in windows, didn't try on anything else. 


Monday, 01 August 2005 14:59:54 (GMT Daylight Time, UTC+01:00)  #    Comments [1]  Asp.Net