Advertisement:
NameCheap

Author Topic: How to do that h 2 was colored links in css  (Read 5939 times)

Offline impreza

  • Sophist Member
  • *****
  • Posts: 1,041
    • Open Artykuły i Porady
How to do that h 2 was colored links in css
« 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.

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

}

MrPhil

  • Guest
Re: How to do that h 2 was colored links in css
« Reply #1 on: September 15, 2011, 09:20:03 PM »
Links in a header are bit unusual, but assuming they work...
Code: [Select]
h2 {  ... your general h2 properties... }
h2 a { color: black; }
h2 a:hover { color: red; }
Should be fairly close.