Click to See Complete Forum and Search --> : Need Help with CSS
asifakhtar
07-04-2009, 01:01 PM
Hi,
I have 5 forms and I want to apply these settings(background-color:#006666; font-family: 'Arial Black'; height: 6px; font-size: small;color: #ffffff) using css to a heading in all those 5 forms. How can I achieve this? I am using a separte CSS file.
My heading HTML is 1 form is
<td>Status Information</td>
Can someone please help me with that?
Thanks.
tracknut
07-04-2009, 01:39 PM
Unless there's something to distinguish these heading areas from other <td> elements in your tables, probably the best bet is to set up a class for the heading, like:
.heading {background-color:#006666; font-family: 'Arial Black'; height: 6px; font-size: small;color: #ffffff}
and then change your five headings to look like:
<td class="heading">Status Information</td>
You could also change to using the <th> tag in your tables, and then just style that tag w/o creating a .heading class. That's the more semantic way of doing it.
Dave
asifakhtar
07-04-2009, 02:44 PM
Unless there's something to distinguish these heading areas from other <td> elements in your tables, probably the best bet is to set up a class for the heading, like:
.heading {background-color:#006666; font-family: 'Arial Black'; height: 6px; font-size: small;color: #ffffff}
and then change your five headings to look like:
<td class="heading">Status Information</td>
You could also change to using the <th> tag in your tables, and then just style that tag w/o creating a .heading class. That's the more semantic way of doing it.
Dave
Thank you Dave for your help. It worked.