skip to content

Shrink wrapped buttons

27th May 2007

Shrink-wrapped buttons Another
Button
..and a final one!

Information

This is my take on the method for shrink-wrapping float left buttons as put forward by Roger Johansson at 456 Berea Street - Creating bulletproof graphic link buttons with CSS

This version uses just one image instead of two and one less 'shrink' tag.

Using padding and both positive and negative margins it is possible to use the outer link to hold one corner and the three nested <b> tags to hold the other three corners.

Tested in IE5.5, IE6, IE7, Firefox, Opera, Netscape and Mozilla. It should also be ok in all other modern browsers.

The single image can be seen here - button image.

Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.


Recommended Sites

CSSplay web design/assistance

"The citroen.co.uk web site uses
CSS Play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth


Advertise with CSSplay

CSS play pages

CSS (Design) - TOP.ORG

CSS play recommend

SitegrinderPSD to HTMLFree, practical CSS menus, layouts, and examples