# CSS Question

**URL:** <https://forum.kirupa.com/t/css-question/7965>\
**Category:** web dev\
**Created:** [November 11, 2002, 3:50pm UTC](https://forum.kirupa.com/t/css-question/7965 "2002-11-11T15:50:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdipi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mdipi/32/49_2.png) [@mdipi](https://forum.kirupa.com/u/mdipi)\
**Post date:** [November 11, 2002, 3:50pm UTC](https://forum.kirupa.com/t/css-question/7965/1 "2002-11-11T15:50:10Z")

</div>

how can i get the link to change a color when hovered over by using a CSS code? See the problem is i dont know the code for a link using CSS. I know very very little about it, but this is something that i REALLY want to do. Please help,

-mike:cyclops:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 5:48pm UTC](https://forum.kirupa.com/t/css-question/7965/2 "2002-11-11T17:48:13Z")

</div>

any one [COLOR=chocolate]:q:[/COLOR]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 6:33pm UTC](https://forum.kirupa.com/t/css-question/7965/3 "2002-11-11T18:33:14Z")

</div>

Put this in between the head tags of your page.

```php

<STYLE TYPE="text/css">
<!--
a {text-decoration: none; color: #000000}
a:link {text-decoration: none; color: #000000;}
a:visited {text-decoration: none; color: #000000;}
a:active {text-decoration: none; color: #000000;}
a:hover {text-decoration: underline; color: #000000;}
-->
</STYLE>

```

That is the code I usually use, change the colors to fit your needs.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 8:07pm UTC](https://forum.kirupa.com/t/css-question/7965/4 "2002-11-11T20:07:37Z")

</div>

what are head tags? lol j/k. was it you that was saying how much you hate it when ppl say that, or other obvious things?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 8:11pm UTC](https://forum.kirupa.com/t/css-question/7965/5 "2002-11-11T20:11:05Z")

</div>

Yeah, probably was me. I have had people ask me that before.

I hate it when people ask me that, because if they don’t know what a head tag in an HTML page is… then they definietly won’t understand the code I am giving them, so they will just ask me a billion questions about why it doesn’t work when they mess it up…LOL.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 8:11pm UTC](https://forum.kirupa.com/t/css-question/7965/6 "2002-11-11T20:11:26Z")

</div>

lost it worked! hahaha! thanks so much! [COLOR=seagreen]:P[/COLOR]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 8:12pm UTC](https://forum.kirupa.com/t/css-question/7965/7 "2002-11-11T20:12:22Z")

</div>

No problem.

You can change it to whatever, that is just the code I tend to use, so I figured I would just copy and paste it from my file instead of typing it all out…LOL.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 8:15pm UTC](https://forum.kirupa.com/t/css-question/7965/8 "2002-11-11T20:15:52Z")

</div>

yeah i changed the color. my HTML book had ‘intro to css’ but didnt tell what the link tags or any other tags but p and h1 were…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 8:18pm UTC](https://forum.kirupa.com/t/css-question/7965/9 "2002-11-11T20:18:34Z")

</div>

That is a pretty bad CSS book then…lol.

The link stuff is pretty basic, as well as the body changing, text formatting, etc.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 9:07pm UTC](https://forum.kirupa.com/t/css-question/7965/10 "2002-11-11T21:07:22Z")

</div>

it was just a chapter acctually. but when trying to teach the basics, it helps to know what they are…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 9:09pm UTC](https://forum.kirupa.com/t/css-question/7965/11 "2002-11-11T21:09:38Z")

</div>

oh ok. I misread your reply. I thought you said you had CSS Book, but you really said you had an HTML book that went over the basics of CSS.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 9:16pm UTC](https://forum.kirupa.com/t/css-question/7965/12 "2002-11-11T21:16:46Z")

</div>

yep 😛 but i will keep this code handy, although i think i got most of it memorized. man i have been procrastinating HW the whole day, it’ll bite me in the @$$ if i dont do it though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 9:19pm UTC](https://forum.kirupa.com/t/css-question/7965/13 "2002-11-11T21:19:14Z")

</div>

That is what I loved about advisory. 45 minutes of sitting in a room before school actually started and I had to go to first period.

It was when I got all my homework done (if I didn’t finish it in class the day before, I was always ahead of my classmates).

Do you have advisory?
