Sent by Alex Beston on 1 October 2004 00:12
Hi all
I was wondering if its possible to get a class with generic content.
ie, if you have 7 text boxes all with the same structure, but with
different colors.
if it is does anyone know what the syntax is ?
..genericBox{
text-align: left;
margin: 10px 10px 0px 10px ;
padding: 10px;
border-style: solid;
border-width: 2px;
}
#lyrics{
color: white;
border-color: #3333dd;
background-color: #66CC99;
}
#about{
color: red;
border-color: black;
background-color: white;
}
<div id ="lyrics" class="genericBox">some text ...</div>
<div id ="about" class="genericBox">some text ...</div>
is this the only way to do it? does the "inherit" reserved word have any
use here?
like
#lyrics{
inherit .genericBox;
color: white;
border-color: #3333dd;
background-color: #66CC99;
}
TIA,
Alex
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/