all groups > asp.net > february 2005 >
You're in the

asp.net

group:

Height of checklistbox


Height of checklistbox Vikram
2/28/2005 10:22:33 PM
asp.net:
I want to fix the height of checklistbox control so that
when items exceed the height, than vertical scrollbar
Re: Height of checklistbox Steve C. Orr [MVP, MCSD]
2/28/2005 10:40:04 PM
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


[quoted text, click to view]

AddThis Social Bookmark Button