views:

23

answers:

1

Hi

<div> element with fixed width contains CheckboxList control. Since ListItems can be added by users to this control, there’s a possibility that particular ListItem could overflow parent <div> due to having too large text. I’ve tried preventing this by setting overflow property:

<asp:CheckBoxList ID="chkAllRoles" style="overflow:hidden;" ... />

but to no effect. Is there some other way to prevent ListItem from overflowing?


thanx

+1  A: 

Did you try "overflow: hidden" on the parent div? That's what would control the overflowing of the parent container.

Setting overflow on the list items will be hard to control, as they are rendered as <td> cells.

womp
I've tried it, but it still overflows
carewithl