All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
ListBox
/
Items display with padding
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
3 posts, 1 answers
Michael Markham
2 posts
Member since:
Feb 2010
Posted 04 Mar 2010
Link to this post
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
Answer
Shinu
17764 posts
Member since:
Mar 2007
Posted 04 Mar 2010
Link to this post
Hi
Michael,
Try setting the left padding value as shown below and see whether it helps.
CSS:
.RadListBox .rlbItem
{
padding
:
2px
5px
2px
0px
!important;
}
All the best,
Shinu.
Michael Markham
2 posts
Member since:
Feb 2010
Posted 05 Mar 2010
Link to this post
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
Back to Top
Close