Nov
04
I’ve found hundreds of tutorials on the sliding doors button and hundreds on the sprite technique but never a combination of both. This button combines the wonderful sprite technique with the sliding doors technique to make a beautiful button that not only loads in a snap but also looks great and scales to your text! I hope this is something useful for you! Please give me a shout-out if you like and use this code!
HTML Code:
<div class="clearbutton">
<a class="GlobalOrangeButton" href="http://yoursite.com"><span>So Neat!</span></a>
</div>
CSS Code:
/* GLOBAL ORANGE BUTTON *****************************/
a.GlobalOrangeButton span {
background: transparent url('images/button_left_orange.png') no-repeat 0 0;
display: block;
line-height: 22px;
padding: 7px 0 5px 18px;
color: #fff;
}
a.GlobalOrangeButton {
background: transparent url('images/button_right_orange.png') no-repeat top right;
display: block;
float: left;
height: 34px;
margin-right: 6px;
padding-right: 20px;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
font-weight:bold;
}
a.GlobalOrangeButton:hover span {
background-position: 0 -34px; color: #fff;
}
a.GlobalOrangeButton:hover {
background-position: right -34px;
}
Latest Posts
Cool Finds
- 10 Useful iPhone Shortcuts, Tips and Tricks
- Transfer Big Files Circumvents iPhone Upload Limits [Downloads]
- Libox Syncs and Streams Your Media Collection Just About Anywhere [Downloads]
- Chrome to iPhone Sends Links to your iOS Device from Chrome [Downloads]
- Google Mobile Brings True iPhone Push Notifications for Gmail and Google Calendar [Downloads]
- AirDropper Requests Files via Email and Saves to Your Dropbox [File Sharing]
- How a 16-yo Kid Made His First Million Dollars Following His Hero, Steve Jobs [Stories]
- Turn a Sheet of Paper into a Simple Flash Softbox [DIY]
- How to Migrate Your Entire Google Account to a New One [Data]
- Ten Laws to Design By

Bravo, I think I’m going to adapt this into my latest theme.
Sweet! I’ll have to use that sometime. Been really inspired by your work, Brandon. Keep on being awesome.
Looking great, Brandon!
I’ll tell Andrew about it, he’s the one that designed the buttons
Your buttons are the best… I tried then in my HTML code and it worked. I then put it in my PHP code and the slider on the right side stop working.
If you have time can you take a look at it and tell me what you think.
When you go to the link provided select the Senior 2010 to see your Buttons
Thank You
Merritt “Stan” Carr
Photographer
Hey Merritt,
I see a few things in your code that might break the buttons.. your red buttons under the heading “To View all Print Options Click the links Below” – that div is not tall enough to support the number of buttons you have placed inside of it. This might be a problem so make that div taller. Also you need to remove ” ” from inside of the button code and instead change the font in the CSS style sheet. Be careful as the font sizes might break the button.
Hope this helps…