Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

'd like to have one image for the background and then reuse that for any size button with any text on it by just using a CSS class. So, I'd like to have the button, the moused-over and clicked button as images, but then use CSS to apply that to a button so that I can change the text in the HTML (rather than having to recreate the button image everytime the text changes or I need a new button with new text). Also, that'll allow me to change the color of ALL buttons in one place.

I do web development only part time, so a bit of a newbie at the CSS stuff.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

This is a good tutorial for creating CSS buttons - http://designshack.co.uk/articles/css/6-useful-css-button-recipes-you-can-copy-paste

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.