Simple Machines Community Forum

General Community => Scripting Help => Topic started by: impreza on September 11, 2011, 04:06:45 AM

Title: How to do that h 2 was colored links in css
Post by: impreza on September 11, 2011, 04:06:45 AM
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;

}
Title: Re: How to do that h 2 was colored links in css
Post by: MrPhil on September 15, 2011, 09:20:03 PM
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.