News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to do that h 2 was colored links in css

Started by impreza, September 11, 2011, 04:06:45 AM

Previous topic - Next topic

impreza

Hello all. I have this code in the css section h2 - how to do links in h2 were black and had their lights hover, say red? Please help and thank you in advance.

h2 {
margin: 0 0 20px 0;
padding: 5px 0 10px 0;
font-size: 24px;
color: #fff;
font-weight: normal;
border-bottom: 1px dotted #fff;

}
Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

MrPhil

Links in a header are bit unusual, but assuming they work...

h2 {  ... your general h2 properties... }
h2 a { color: black; }
h2 a:hover { color: red; }

Should be fairly close.

Advertisement: