Oct 29, 2009, 2:15 PM
Change css of ext:button
I am trying to change the look of the text in a button. I have created a class
For the label to work I had to add span to the end of the css definition
I have also tried to override the class x-btn-text within the markup on the page that the button is on
Thanks~
.textbutton { font:bold 7.5pt Century Gothic, Arial, sans-serif; }
<ext:Button ID="btnReset" runat="server" Text="Reset" Cls="textbutton" />
and assigned it to Cls="textbutton". I have also tried adding it to the StyleSpec="font:bold 7.5pt Century Gothic, Arial, sans-serif;"For the label to work I had to add span to the end of the css definition
.text span { font:bold 7.5pt Century Gothic, Arial, sans-serif; }
there isn't a span around the button but I tried it anyway - no luck.I have also tried to override the class x-btn-text within the markup on the page that the button is on
<script type=text/css>
.x-btn-text .x-btn-center, .x-panel-btn-td
{
font:bold 7.5pt Century Gothic, Arial, sans-serif;
}
</script>
didn't work. What step am I missing?Thanks~