General Community > HTML/CSS
How to do that h 2 was colored links in css
(1/1)
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.
--- Code: ---h2 {
margin: 0 0 20px 0;
padding: 5px 0 10px 0;
font-size: 24px;
color: #fff;
font-weight: normal;
border-bottom: 1px dotted #fff;
}
--- End code ---
MrPhil:
Links in a header are bit unusual, but assuming they work...
--- Code: ---h2 { ... your general h2 properties... }
h2 a { color: black; }
h2 a:hover { color: red; }
--- End code ---
Should be fairly close.
Navigation
[0] Message Index
Go to full version