August 14, 2008
2:54 am

John Resig posted about the upcoming improvements in Firefox 3.1 CSS support. One areas that have received solid implementations is that of border-image. This is a new CSS 3 module that makes the exact slicing of images (and their positioning around an element) quite easy. Now you can create the iPhone search button that iUI contains, using the simple CSS:

border-width: 0 5 0 5;
-webkit-border-image: url(toolButton.png) 0 5 0 5 stretch stretch;
-moz-border-image: url(toolButton.png) 0 5 0 5 stretch stretch;

Here you see the reusable button from the iui library (slightly tweaked to support both WebKit's and Mozilla's implementations of border-image).

More info....

Source:→ Ajaxian

Loading

Contextual Related Posts:

No followup yet

Leave a Response

Comment Preview
« Friends List in Google ReaderLive Search Webmaster Center revives “backlinks checker tool” »
Feed Icon

Subscribe via RSS or email: