This is a migrated thread and some comments may be shown as answers.

Setting height using css

1 Answer 19 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 1
Veteran
Morten asked on 05 Aug 2015, 12:40 PM

Hi,

 How can I set the height using CSS?

 

<telerik:RadListBox runat="server" ID="rlb" CssClass="height40" ><Items><telerik:RadListBoxItem Text="1" /><telerik:RadListBoxItem Text="2" /><telerik:RadListBoxItem Text="3" /><telerik:RadListBoxItem Text="4" /><telerik:RadListBoxItem Text="5" /><telerik:RadListBoxItem Text="6" /><telerik:RadListBoxItem Text="7" /></Items>     </telerik:RadListBox>

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Aug 2015, 07:13 AM
Hello Morten,

You can use the following rule to achieve that:
<style>
    .height40 .rlbGroup {
        height: 400px;
    }
</style>

Hope this helps. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListBox
Asked by
Morten
Top achievements
Rank 1
Veteran
Answers by
Eyup
Telerik team
Share this question
or