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

Items display with padding

2 Answers 65 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Michael Markham
Top achievements
Rank 1
Michael Markham asked on 04 Mar 2010, 09:01 PM
Hello,

I'm a new customer of Telerik and I'm using the ListBox tool for the first time.  When I add items to the ListBox they're displayed with about 20 pixels of padding along the left-edge.

It looks like this:
http://screencast.com/t/ZjM0NTUzMDIt

How do I adjust that?  At first I thought the ListBoxItems needed to have "Checkable" set to false, but that didn't do the trick. 

Other suggestions?

Thanks,

Michael

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 05 Mar 2010, 05:49 AM
Hi Michael,

Try setting the left padding value as shown below and see whether it helps.

CSS:
 
    .RadListBox .rlbItem 
    { 
     padding2px 5px 2px 0px !important; 
    } 

All the best,
Shinu.
0
Michael Markham
Top achievements
Rank 1
answered on 05 Mar 2010, 05:59 PM
Hi Shinu,

Thanks for that... It turns out that the site's main style sheet had defined the behavior of <ul> and <li>, which resulted in the problem.

Your suggestion to override those values was exactly right.

Michael
Tags
ListBox
Asked by
Michael Markham
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Michael Markham
Top achievements
Rank 1
Share this question
or