krisleech
07-04-2008, 10:58 AM
I can set the background color of a link easily enough but the background color extends across the entire page. I dont want to set the width in the css as I want a general class I can apply to any link.
.button {
padding:10px;
background-color: yellow;
}
How can I change this css so the background color just wraps the text in a link and does not extend across the entire page? (without having to set width).
Many thanks, K.
.button {
padding:10px;
background-color: yellow;
}
How can I change this css so the background color just wraps the text in a link and does not extend across the entire page? (without having to set width).
Many thanks, K.