Forums » Installation

h1 tags + color

verena
GERMANY
2010-02-07 19:17:09
Permalink Post
 

Hi,
I just changed my logo from a jpg to h1 and h2 tags. I then edited the h1 and h2 tags in my css style sheet and gave h1 the color red:
color:#990000;
and the h2 tag the color black:
color:#000000;

Still they both show up in grey in my Firefox Browser. When I check it in Safari the colors are right. I refreshed the site etc. but there is no change.
Any idea what I did wrong?

Thanks for help!
V.

http://www.verenapostweiler.de/Webpage

Vaska A
I WROTE THIS
2010-02-07 19:20:25
Permalink Post
 

That's because they are links...so even though you have styled the h1/h2 the link rule comes afterwards and applies the link rules. So, you could do something like this to style h1/h2 links...

  1. h1 a:link { ... }
  2. h1 a:hover { ... }
  3. h1 a:active { ... }
  4. h1 a:visited { ... }

And then add whatever rules you want for the various states of things.

Looks like you've never done web work before? You seem to be doing pretty well so far...congrats.

verena
GERMANY
2010-02-07 21:44:43
Permalink Post
 

Great, that works fine!
Thanks for the quick help, Vaska!
V.

p.s. and yes, I'm only starting with web, that's why I'm v e r y thankful for indexhibit...

Showing 1 - 3 of 3 posts in Forum > Installation > h1 tags + color
 

You need to be logged in to post.