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

RadListBox Item Height

4 Answers 275 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Marcel Härry
Top achievements
Rank 1
Marcel Härry asked on 13 Jan 2010, 11:03 AM

Hello all

if i put this code into the head section of my master page,
items are 10 pix height as expected, but only on vstudio2008 webdevserver, not on production server (w2k3).

<style type="text/css">
.RadListBox span.rlbText  { padding:0; line-height:10px; }
</style>

the only differences in ie8 sourcetext compare are things like this: <link href="/WebResource.axd?d=Xv_vuQIqd...blabla
Maybe there is a better way to set the line height of my listbox items, the default height is much too big for my taste.
i am a bit lost...
Any ideas?

4 Answers, 1 is accepted

Sort by
0
Marcel Härry
Top achievements
Rank 1
answered on 14 Jan 2010, 01:57 PM

ok volks

stop banging head at walls, sleepless nights are over, i solved it this way:

.RadListBox li.rlbItem, .RadListBox li.rlbSelected,  .RadListBox span.rlbText 

    padding:0 0 0 1;
    line-height:12px;

.RadListBox span.rlbText 

    padding:0 0 0 1;
    line-height:12px;

looks as requested this way. anyway it's a trial and error solution or better said
i do not absolutely know what i've done here (what i d'ont like)
(as a developer, styles makes less sense to me, but you can imagine our users think different)
if anyone have a better one, please drop a line.

0
Accepted
Yana
Telerik team
answered on 14 Jan 2010, 02:58 PM
Hello Marcel,

Actually this is the right way to set height of RadListBox items.

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jean-Francois Lussier
Top achievements
Rank 1
answered on 30 Jan 2012, 09:59 PM
Hi,

work fine, but IE7 as problem with the selected item, any Idea how to fix this ?

here's what I'm using:

.RadListBox li.rlbItem, li.rlbSelected, .RadListBox span.rlbText

{ padding:0 0 0 1;

 line-height:8px;

}

.radlistbox span.rlbtext

{ padding:0 0 0 1;

line-height:8px;  

}


thanks
J-F
0
Jean-Francois Lussier
Top achievements
Rank 1
answered on 31 Jan 2012, 07:34 PM
Hi

I fix it by setting the font font-size: 8px;
Tags
ListBox
Asked by
Marcel Härry
Top achievements
Rank 1
Answers by
Marcel Härry
Top achievements
Rank 1
Yana
Telerik team
Jean-Francois Lussier
Top achievements
Rank 1
Share this question
or