[Dojo-interest] How do I override a widget CSS class?
kindsol at hotpop.com
Wed Apr 26 08:46:28 MDT 2006
Good question. I override the default styles by incresing the CSS rule
The CSS rule from tree.css is :
If you look at the tree template string (in tree.js) you will see that
the entire tree widget is contained in <div /> tags:
I would override with my own CSS file by defining:
By adding the 'div' to the front of the rule, I have increased
specificity and my custom rule wins.
DISCLAIMER: I did not actually try this example -- but hopefully you get
Bernie Durfee wrote:
> Is this possible? Do I need to create a 'theme' or is there a way to
> just override the font of the tree?
> Bernie Durfee wrote:
>> I'd like to change the font of the Tree widget, what the easiest way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dojo-interest