Height of checklistbox
Index
‹
Web Programming
‹
ASP.Net
Author
Message
swatisahasrabudhe
Posted: Tue Mar 01 00:40:04 CST 2005
Top
ASP.Net >> Height of checklistbox
I want to fix the height of checklistbox control so that
when items exceed the height, than vertical scrollbar
should be displayed.
Web Programming235
Steve
Posted: Tue Mar 01 00:40:04 CST 2005
Top
ASP.Net >> Height of checklistbox You can put your Checkboxlist into a fixed size area by putting it in a div
such as this:
<div id="Layer1" style="position:relative;width:350px;height:200px;
overflow:scroll;">CheckBoxList Goes Here</div>
The key is to use the "overflow" CSS attribute.
Here's more info:
http://www.w3schools.com/css/pr_pos_overflow.asp
Another option is to put your Checkboxlist in an IFrame.
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/IFRAME.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
>I want to fix the height of checklistbox control so that
> when items exceed the height, than vertical scrollbar
> should be displayed.
Index
‹
Web Programming
‹
ASP.Net