PDA

View Full Version : How can I make a oval button?



diegocachero82
26 Nov 2007, 3:09 AM
How can I make a oval button?

Thanks and sorry for my english.=;

efege
26 Nov 2007, 3:26 AM
1. You can dissect the html markup + css of an Ext button (e.g. the one at http://extjs.com/deploy/dev/examples/tabs/tabs-adv.html) using Firebug. You'll find that a button is wrapped with an HTML table element, with a single row and 3 cells. These cells have respectively classes x-btn-left, x-btn-center, x-btn-right. That's where the visual aspect of an Ext button comes from. So you should modify the style rules for those 3 classes --particularly, the background images--, so that the resulting visual shape is oval.

2. To make this thread easy to find by future searchers, would you fix both ocurrences of "buttom"? It's "button" ;) Thanks.

diegocachero82
27 Nov 2007, 11:54 PM
Thanks, I have just change the title with buttom to button.

Sorry for my poor english=;