Advertisement:
2by2host

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

Offline impreza

  • Sr. Member
  • ****
  • Posts: 957
    • Forum wielotematyczne
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;

}

Offline MrPhil

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,649
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.
Please do not PM me with support questions, unless I ask you to. Unsolicited PMs for support will be ignored. It's best to have questions and answers in public, so others can research a problem and learn about it without having to ask the question yet again. Thank you!
FAQs | SMF 1.1 fixes | Project ideas
-= From the ashes shall rise a sooty tern =-