View Full Version : external style sheets


twix2006
07-19-2003, 06:52 AM
my link css doesn't show up on the pages that i put this code on:

<LINK REL=stylesheet HREF="style.css" type="text/css">

but the rest of the css works. this is the code that i have on the style.css page uploaded to my site..did i do something wrong? [i used the code on style.css b4 on my pages and the links turned out fine..but w/ <LINK REL=stylesheet HREF="style.css" type="text/css">..the text links on the page [javascript links] are blue and underlined :(]:

<STYLE TYPE="text/css">
a:link
{text-decoration: none; color: #ffffff;}
a:visited
{text-decoration: none; color: #ffffff;}
a:active
{text-decoration: none; color: #ffffff;}
a:hover
{text-decoration: none; cursor: crosshair; border:1 dashed; border-color:#ffffff}

BODY {
color:#ffffff;
font-size:8pt;
font-family: verdana;
line-height: 15px;
scrollbar-face-color: 000000;
scrollbar-highlight-color: 000000;
scrollbar-3dlight-color: 804889;
scrollbar-darkshadow-color: 804889;
scrollbar-shadow-color: 000000;
scrollbar-arrow-color: 000000;
scrollbar-track-color: 000000;
}
</style>

MaGiCSuN
07-19-2003, 01:08 PM
you have to get rid of the <style type="text/css"> and </style> because in the .css file they are not needed, ONLY when you place the CSS on the page itself between the <head></head>

so in .css files you don't need <style> and </style>
delete that first. So the beginning is A:link
and the end is } from the BODY part

Love,
Mirna

twix2006
07-19-2003, 03:01 PM
oh really? hm..i was looking at a tutorial for external style sheets at julie's star and she had to put those tags on..weird.

MaGiCSuN
07-19-2003, 05:32 PM
then she hasn't got that good i'm afraid hehe :)

in normal stylesheets that you put between <head> and </head> you need those <style> things surrounding it.

but in a .css file you only need the coding. Try that, and if it doesn't work just post here what the problem is and what it does etc ;)

Love,
Mirna

twix2006
07-20-2003, 03:52 PM
ahha..well it worked tnx :D another question tho..i can put a bg code in the css so that it doesn't repeat and is fixed right? cuz i don't want to put html on every single page

kittycat
07-20-2003, 04:30 PM
Yes you can, Lissa has the codes listed on her CSS page if you need them.