View Full Version : LINK HREF CSS help!


Miss_Thang
07-31-2005, 04:08 AM
This is my first time using <link href="css.css"> so so far everything came out ok...except my link is purple [that default purple] but when you hover over it it's the color i want...how can i get my links to work??

here's my code:


<html>
<head>
<title>Copon Fan | Uniting Michael Copon Fans all over the world </title>
<head>
<style type="text/css">
A { text-decoration: none; font-weight: Bold; color:#66764C; }
A:hover { text-decoration: none; color:#F8DD61;}

body{
background-color: #E6FDB3;
font-family: 'Arial, Times New Roman, Verdana';
font-size: 9px;
text-align: Justify;
color: #000000;
scrollbar-arrow-color: #E6FDB3;
scrollbar-base-color: #66764C;
scrollbar-dark-shadow-color: ;
scrollbar-track-color: #E6FDB3;
scrollbar-face-color: #66764C;
scrollbar-shadow-color: #8FAB70;
scrollbar-highlight-color: ;
scrollbar-3d-light-color: ;
margin-top: 0;
margin-bottom: 0;
margin-right: 0;
}
table,tr, td {
font-family: arial, tahoma;
color: #FEFDF0;
font-size: 10px;
text-align:justify;
}
</style>
</head>
</html>

onigiri
07-31-2005, 04:15 AM
If your stylesheet ends with .css, you don't need the <style> tags, for one thing.

Miss_Thang
07-31-2005, 04:21 AM
i removed the tags..but the links are still the same...??

DonComp65
07-31-2005, 04:24 AM
This is my first time using <link href="css.css"> so so far everything came out ok...except my link is purple [that default purple] but when you hover over it it's the color i want...how can i get my links to work??

here's my code:


<html>
<head>
<title>Copon Fan | Uniting Michael Copon Fans all over the world </title>
<head>
<style type="text/css">
A { text-decoration: none; font-weight: Bold; color:#66764C; }
A:hover { text-decoration: none; color:#F8DD61;}

body{
background-color: #E6FDB3;
font-family: 'Arial, Times New Roman, Verdana';
font-size: 9px;
text-align: Justify;
color: #000000;
scrollbar-arrow-color: #E6FDB3;
scrollbar-base-color: #66764C;
scrollbar-dark-shadow-color: ;
scrollbar-track-color: #E6FDB3;
scrollbar-face-color: #66764C;
scrollbar-shadow-color: #8FAB70;
scrollbar-highlight-color: ;
scrollbar-3d-light-color: ;
margin-top: 0;
margin-bottom: 0;
margin-right: 0;
}
table,tr, td {
font-family: arial, tahoma;
color: #FEFDF0;
font-size: 10px;
text-align:justify;
}
</style>
</head>
</html>
************************************************** ****

Here copy and paste this in the <head> section of your page.....
************************************************** ****
<style type="text/css">
<!--
A:link { text-decoration: none; color:#666666 }
A:visited { text-decoration: none; color:#333333 }
A:hover { text-decoration: none; color:#ffff00 }
-->
<style
type="text/css"> <!-- INPUT { background-color: gray; border-color:
white; text-align: center; } --> </style>
</style>

************************************************** *****
change the 3 # color codes to reflect what you want....leaving the #.
Leave the <style type and color alone...that has to do with buttons as input forms...but, it doesn't reflect anything your doing...
and why your getting the purple color is default to you already visited that site...
Just delete your internet tracts...or cookies/ history....and it should be fine...
Take Care....

Miss_Thang
07-31-2005, 04:35 AM
done...it worked :) thanks.. :D

Miss_Thang
07-31-2005, 04:42 AM
ok the links wrking...but not my background...i can't change the color now :(...this is dificult!! neither i the scrollbar or anything like that...this is driving me insane...lol...i might jus' do it the reg. way...lol.

PulsarSL
07-31-2005, 12:26 PM
ok the links wrking...but not my background...i can't change the color now :(...this is dificult!! neither i the scrollbar or anything like that...this is driving me insane...lol...i might jus' do it the reg. way...lol.

I'm fairly new to CSS myself, but don't you need to wrap the url to your body background image in the URL()? i.e. - URL(http://yourhost.com/image.jpg)?

lefty
07-31-2005, 02:35 PM
There is no background image :confusion

Miss_Thang, is there anywhere else on your page that you have a background color code? It could be interfering with your css. (If not, could you post a link to the page?)

DonComp65
07-31-2005, 10:16 PM
ok the links wrking...but not my background...i can't change the color now :(...this is dificult!! neither i the scrollbar or anything like that...this is driving me insane...lol...i might jus' do it the reg. way...lol.



************************************************** ******
Insert this in the top in to head section....

<body bgcolor="#000000">

Change the 000000's to your color.....there you go...

Take Care.

Miss_Thang
07-31-2005, 11:06 PM
thanks :)