16
Jul

I have my color tags set in CSS, but I don't know how to set the color tags for H3 and STRONG to be different than the rest of the page. Anyone know how to do this?


Answer:
Add these definitions to your style sheet. This affects all occurrences of h3 and strong tags and you don't have to apply them manually in all html pages (do not forget to change the color code):

h3

{

color: #abcdef;

}

strong

{

color: #abcdef;

}


Answer:
the above answer is correct but what if you want to show two H3 tag in different way for ex. if you want font size 12px in one H3 tag and in the next H3 tag you want font size 14px.

so for that you just make the class with any name

and than just apply class in your H3 or stong tag like:

XYZ

XYZ

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

This entry was posted on Wednesday, July 16th, 2008 at 3:22 pm and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or TrackBack URI from your own site.

Leave a reply

Name (*)
Mail (*)
URI
Comment