I've defined the following styles in an external CSS file.
.callButton {
width: 100px;
height: 25px;
float: right;
/* other styles here */
background-img: url('images/callButton.png');
}
.otherButton {
width: 100px;
height: 25px;
float: right;
/* same styles from callButton here */
background-img: url('images/otherButton.png');
}
/* There are 5 more buttons with similar properties */
While all buttons have common properties, only the background-img
is different. Is there a way to use the same classes for the common properties and set something unique (like a variable) for the background-img
property?