hi,
i've made a little button widget which is styled with some gfx. my css class for that button is like:
div.tButton
{
height:20px;
cursor:pointer;
background-repeat:no-repeat;
background-image:url(/button/button.png);
}
...
that .css also has classes for hover, click and disabled button-state.
what i wanna do is create different button themes (color,size ..) which use one universal .css file and just additions for height and background-image - so i don't have to create a whole css file for each theme.
how could this be done?
eg. for the html markup i've tried something like
<div class=tButton btn40>mybutton</div>
where btn40 whould be a .css class with different height + background-image, but doesn't work.
any idea if this is possible?
thanks