Re: stupid CSS question

by Linda Mercer/Wishstar <catnip(at)ais.net>

 Date:  Sat, 03 Aug 2002 19:43:51 -0500
 To:  "Karin Christensen" <karinc(at)linkline.com>
 Cc:  <hwg-techniques(at)hwg.org>
 References:  granbury
  todo: View Thread, Original
This isn't a "stupid" question, just shows you're learning and that's good.=
=20
It wasn't all that long ago I was in your position. Anyway, here's an=20
example of how your do it:

In this example, the class has been named "whatever".. you can name it=20
whatever you wish:

In your HTML:

<a  class=3D"whatever" href=3D"linkurl.com">

In your CSS or in your internal styles:

a.whatever:link {
color: #CC0033;
background-color: #FFFFFF;
font-style: italic;
font-weight: normal;
}

a.whatever:active {
color: #FF0000;
background-color: #FFFFFF;
font-style: italic;
font-weight: normal;
}

a.whatever:visited {
color: #990000;
background-color: #FFFFFF;
font-style: italic;
font-weight: normal;
}

a.whatever:hover {
color: #FF0000;
background-color: #FFFFFF;
font-style: italic;
font-weight: normal;
}

You can, of course, adjust the colors or change font style: "italic"  to=20
"font-style: normal" or change your font-weight to "bold"

Good luck!

Linda


At 06:45 PM 8/3/02, you wrote:
>I'm trying to teach myself a little CSS while redesigning one of my
>websites.
>
>If I am applying styles internally (I think that is the term my link colors
>are set within the style tags)....how can I change the color of the links=
 in
>a different place on the page (locally?).
>
>For instance if I have the links in white on the sidebar, how can I make=
 the
>links blue in another part of the page.  Can I put it in the a href tag
>somehow.  Nothing I've tried is working.  I don't know if any of this makes
>sense but it's been a long day.
>
>Karin

=AB=A4=BB=A5=AB=A4=BB=A7=AB=A4=BB=A5=AB=A4=BB=A7=AB=A4=BB=A5=AB=A4=BB=A7=AB=
=A4=BB=A5=AB=A4=BB=A7=AB=A4=BB=A5=AB=A4=BB=A7

"There is no better exercise for your heart than reaching
down and helping to lift someone up"  - Bernard Meltzer
Feline Rescue Network at www.felinerescue.net

=AB=A4=BB=A5=AB=A4=BB=A7=AB=A4=BB=A5=AB=A4=BB=A7=AB=A4=BB=A5=AB=A4=BB=A7=AB=
=A4=BB=A5=AB=A4=BB=A7=AB=A4=BB=A5=AB=A4=BB=A7

The Feline Rescue Network specializes in linking up
great homes with great kitties. Join Operation Noble
Foster and offer a foster home for the cats of the
Military while they are away protecting us
http://www.felinerescue.net/noblefoster/intro.htm

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA