View Full Version : Nested List Item - Custom Styles?
19 Oct 2010, 1:20 PM
Is it possible to add a custom style to a list/nested list item? I tried creating my own template (overriding getItemTextTpl) with a class on it which worked - to an extent. However, I want to have content in the list item that extends beyond the 2.5em height that is set in some of the x-list classes. No matter what I try, the height of the list item seems fixed. Any suggestions?
19 Oct 2010, 3:27 PM
Why not just apply your own classes in the template? Then you can apply whatever css rules you like.
20 Oct 2010, 2:26 AM
Yes, I did that. However, anything with a height is ignored. Even putting a large image inside a div in my template does not force the list item height to grow past the default.
20 Oct 2010, 5:39 AM
I had a similar issue with a NestedList. I did not find many helpful resources in my searches, so hopefully you find my "solution" helpful.
Rather than add a single class, I added our own class to the list container, and then just override the child list elements.
It worked for me, hopefully it does for you!
20 Oct 2010, 5:52 AM
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.