View Full Version : CSS Question
mdipi
November 11th, 2002, 10:50 AM
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:
mdipi
November 11th, 2002, 12:48 PM
any one :q:
lostinbeta
November 11th, 2002, 01:33 PM
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.
mdipi
November 11th, 2002, 03:07 PM
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?
lostinbeta
November 11th, 2002, 03:11 PM
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.
mdipi
November 11th, 2002, 03:11 PM
lost it worked! hahaha! thanks so much! :P
lostinbeta
November 11th, 2002, 03:12 PM
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.
mdipi
November 11th, 2002, 03:15 PM
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....
lostinbeta
November 11th, 2002, 03:18 PM
That is a pretty bad CSS book then...lol.
The link stuff is pretty basic, as well as the body changing, text formatting, etc.
mdipi
November 11th, 2002, 04:07 PM
it was just a chapter acctually. but when trying to teach the basics, it helps to know what they are....
lostinbeta
November 11th, 2002, 04:09 PM
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.
mdipi
November 11th, 2002, 04:16 PM
yep :P 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.
lostinbeta
November 11th, 2002, 04:19 PM
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?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.