Click to See Complete Forum and Search --> : [RESOLVED] Use The Same Style For 2 Different ID's??


lmf232s
05-18-2006, 02:47 PM
I have a style that i would like to be applied to two differnt ID's
For example the code below. In this example i would need header and footer to share the same style. I was wondering if i could do that or if i have to create a new style for Footer.

#Header a{
display: block;
text-decoration: none;
font: bold 12px Arial; /*tab font */
}

<div Id="Header"></div>
<div Id="Footer"></div>

NogDog
05-18-2006, 02:53 PM
#Header a, #Footer a{
display: block;
text-decoration: none;
font: bold 12px Arial; /*tab font */
}

lmf232s
05-18-2006, 02:57 PM
Thanks NogDog,

I was close but not close enough, i had tried.

#Header, #Footer a{
display: block;
text-decoration: none;
font: bold 12px Arial; /*tab font */
}