Return to Snippet

Revision: 13675
at May 2, 2009 11:35 by 1man


Initial Code
a.myButton {
background: transparent url('right.png') no-repeat scroll top right;
display: block;
float: left;
height: 32px; /* Image height */
margin-right: 6px;
padding-right: 20px;/*Image Width*/
/*Other Styles*/
}
a.myButton span {
background: transparent url('button_left.png') no-repeat;
display: block;
line-height: 22px; /* Image Height */
padding: /*Change to how you see fit*/
}

Initial URL
http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/

Initial Description
Useful little spippet for a button anchor where the text may change.

Initial Title
Css Button Sliding doors

Initial Tags
css, button

Initial Language
CSS