Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

'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
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

Your Answer


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.