PDA

View Full Version : CSS help!



deadfingers
01-24-2005, 06:21 PM
alright well im gonna start using one CSS page to control all the "variables" on my pages, so i put this <link rel="stylesheet" href="style.css" type="text/css"> in the head page of the pages i want to add to. So i make a CSS file called style that has all my CSS coding and watnot. Now when i save them the pages dont seem to work? why not? i copy the CSS coding and paste it into the pages individually and they work but when its all in the style.css page it doesnt work why is this? I saved them both in the same area yet they do nothing any help?

tony
01-25-2005, 05:38 AM
<link href="style.css" rel="stylesheet" type="text/css" />

i doubt it will make any difference but thats the code i use, it might be worth a try?

CannonBallGuy
01-25-2005, 12:21 PM
That makes no difference.

Your style sheet is saved as style.css, right?
Not just "style"....

If it's still not working, perhaps you can show us the contents of the style sheet...

deadfingers
01-25-2005, 12:54 PM
yes i did save it as .CSS, i said that. Yeah let me upload it then ill put it up.

CannonBallGuy
01-25-2005, 01:19 PM
No... you said:
file called style that has
:P.

kink
01-29-2005, 06:09 PM
<link rel="stylesheet" type="text/css" href="yourfilename.css">

notice the .css its got to be the same as your folder or for your style.ccs



<link rel="stylesheet" type="text/css" href="style.css">

deadfingers
01-29-2005, 10:50 PM
ok, why does everyone say i didnt make a CSS file or whatnot?
So i make a CSS file called style i said there that i made a CSS file, i know how to make a CSS file and it is a CSS file! lol sorry im just a little agitated at the moment. Anyways, let me make sure i understand this fully <link rel="stylesheet" type="text/css" href="style.css">. ok so link is saying ok i want u to use the settings and stuff here, rel="stylesheet", means what type of file it is which is a stylesheet, type tells you what type of style sheet which is CSS. Finally href="style.css" means to link to style.css which is where all my CSS settings and functions can be found on a page called style.CSS. maybe i just missed some small minute thing. ill have to check again.

daboss
01-29-2005, 11:03 PM
you will need to put the full path to your css file. have you done that?

e.g. <link rel="stylesheet" type="text/css" href="[full_path][yourcssfilename].css">

kink
01-30-2005, 05:14 PM
if your link is good then its got to be syntax

body {background-color: cccccc; }

is how it should read

CannonBallGuy
01-31-2005, 12:27 PM
Assuming you linked to the correct file correctly,

perhaps you can show us the contents of the style sheet...

deadfingers
01-31-2005, 10:57 PM
you will need to put the full path to your css file. have you done that?

e.g. <link rel="stylesheet" type="text/css" href="[full_path][yourcssfilename].css">
No i havent, in fact i realized that a while back, usually that tends to work. thanx for your help guys. :D