dude9er
05-07-2008, 04:07 PM
I have multiple classes that share the same style except one, the width. Is it possible to set one class for the shared styles and call it within the width class?
Here's an example:
Shared style:
.inputElements {
background-color:white !important;
background-image:url(txtBoxBG2.gif);
background-repeat:repeat-x;
border:1px solid #9A9B8D;
color:#5D5E4E;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
height:22px;
margin-bottom:5px;
margin-top:2px;
text-align:center;
}
Width class
.inputTblRmBl {
width:40px;
}
I want to call them both at the same time, something like this (which doesn't work)
.inputTblRmBl , .inputElements {
width:40px;
}
Any suggestions?
Thanks in advance!!!
Here's an example:
Shared style:
.inputElements {
background-color:white !important;
background-image:url(txtBoxBG2.gif);
background-repeat:repeat-x;
border:1px solid #9A9B8D;
color:#5D5E4E;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:normal;
height:22px;
margin-bottom:5px;
margin-top:2px;
text-align:center;
}
Width class
.inputTblRmBl {
width:40px;
}
I want to call them both at the same time, something like this (which doesn't work)
.inputTblRmBl , .inputElements {
width:40px;
}
Any suggestions?
Thanks in advance!!!