CSS Question

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:

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

Put this in between the head tags of your page.


<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.

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?

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.

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

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.

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…

That is a pretty bad CSS book then…lol.

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

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

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.

yep :stuck_out_tongue: 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.

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?