Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ListBox > RadListBox Item Height

Answered RadListBox Item Height

Feed from this thread
  • Marcel Härry avatar

    Posted on Jan 13, 2010 (permalink)

    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?

    Reply

  • Marcel Härry avatar

    Posted on Jan 14, 2010 (permalink)

    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.

    Reply

  • Answer Yana Yana admin's avatar

    Posted on Jan 14, 2010 (permalink)

    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.

    Reply

  • Jean-Francois Lussier avatar

    Posted on Jan 30, 2012 (permalink)

    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

    Reply

  • Jean-Francois Lussier avatar

    Posted on Jan 31, 2012 (permalink)

    Hi

    I fix it by setting the font font-size: 8px;

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ListBox > RadListBox Item Height