Hey everyone,
I have a RadListBox with a few RadListBoxItems inside it. They have varying text where some are pretty small while others can be large. I would rather set the width of the RadListBox to the width of the largest length text while also setting a defined static height.
I have set the width with CSS like so:
That part works great on its own. But if I add a static height to either the CSS to make it look like:
or straight to the ascx, the RadListBox messes up. The width becomes 2 pixels and the RadListBox becomes unusable.
I was wondering if there was a way to get the width to be dynamic while having the height be static. Any help/thoughts are appreciated, thanks!
I have a RadListBox with a few RadListBoxItems inside it. They have varying text where some are pretty small while others can be large. I would rather set the width of the RadListBox to the width of the largest length text while also setting a defined static height.
I have set the width with CSS like so:
.RadListBox_Default
{
width
:
auto
!important
;
}
That part works great on its own. But if I add a static height to either the CSS to make it look like:
.RadListBox_Default
{
width
:
auto
!important
;
height
:
300px
;
}
I was wondering if there was a way to get the width to be dynamic while having the height be static. Any help/thoughts are appreciated, thanks!