PDA

View Full Version : Button with custom stretching texture



svlasov
15 Sep 2011, 5:56 AM
Hello,

I'm totally new to Sencha Touch as well as to CSS. I would like to apply a custom png texture to a button. There is an example of texture, not actual one:

http://i56.tinypic.com/rk30op.png

CSS:


.x-button {
background: url('button.png');
border: 0.0em solid transparent;
}


And there is what I get and what I would like to get:

http://i51.tinypic.com/26062ap.png

How can I achieve it? I tired many CSS tutorials, but they just don't work for Sencha.

davidkaneda
19 Sep 2011, 9:20 PM
Hey svlasov- You should check out the CSS property "border-image." Good luck-