moreta
08-21-2003, 09:31 AM
We've defined a class for a section header .section. It has default background and foreground colors, and is used for only one line of text at a time. We'd like to use this stye for various section headers, but change the colors according to the type of section .memosection, .notesection., etc.
<STYLE type=""text/css""><!--
.section {
background:navy;
color:white;
font:bold 12pt Tahoma, Verdana, Arial;
text-align:left;
padding-left:5px;
clear:left;
}
.memosection {
background:red;
color:white;
}
.notesection {
background:green;
color:white;
}
--></STYLE>
<div class="section">
<div class="notesection">
Open Endorsements
</div>
</div>
Is there a cleaner way than using two <div> tags?
Thank you,
moreta
<STYLE type=""text/css""><!--
.section {
background:navy;
color:white;
font:bold 12pt Tahoma, Verdana, Arial;
text-align:left;
padding-left:5px;
clear:left;
}
.memosection {
background:red;
color:white;
}
.notesection {
background:green;
color:white;
}
--></STYLE>
<div class="section">
<div class="notesection">
Open Endorsements
</div>
</div>
Is there a cleaner way than using two <div> tags?
Thank you,
moreta