| Web Standards Design Discuss accessibility, CSS, XHTML and more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in May 2007
30 posts
Gave thanks: 0
Thanked 0 times
|
CSS won't load
This is about as simple as it gets, but I still can't get it to work and neither can the people I've already asked for help, at this point I hope it's just something really basic we're all overlooking. Which is why I come to you good people of the surmunity for advice, consolation and of course hugs.
To sum up the problem, I can't seem to link a css file from my main html doc, and make it work. I've tried all sorts of things, file permissions, hard linking, upload methods (binary/etc), uploading it to another site hosted by a friend/surpass where css was working. Anyway, here are my two docs. index.php Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="inc/style.css" type="text/css">
<title>northflare</title>
</head>
<body>
<p>This really should be working.</p>
<img src="images/header.jpg" alt="northflare - header"></img>
<br>
</body>
</html>
Code:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
color: #ff0000;
text-decoration: none
}
If anyone can shed some light onto this problem, I would definitely appreciate it. Thank you! ![]() |
|
|
|
|
|
#4 (permalink) |
|
﴾͡๏̯͡๏﴿...tweet
Super #1
Joined in Dec 2005
5,768 posts
Gave thanks: 147
Thanked 151 times
|
it's because you haven't properly linked the stylesheet to the html document...!
Code:
<link rel="stylesheet" href="INSERPROPERLINKHERE" type="text/css">
__________________
poof
Last edited by Brandonnn; May 25th, 2007 at 7:58 PM. |
|
|
|
|
|
#6 (permalink) | |
|
﴾͡๏̯͡๏﴿...tweet
Super #1
Joined in Dec 2005
5,768 posts
Gave thanks: 147
Thanked 151 times
|
Quote:
http://usefuel.com/northflare/ from what I can tell you haven't uploaded the CSS document to your server yet.
__________________
poof
|
|
|
|
|
|
|
#7 (permalink) | |
|
﴾͡๏̯͡๏﴿...tweet
Super #1
Joined in Dec 2005
5,768 posts
Gave thanks: 147
Thanked 151 times
|
Quote:
Where is the CSS document? what folder is it in?
__________________
poof
|
|
|
|
|
|
|
#8 (permalink) |
|
Registered User
Seasoned Poster
Joined in May 2007
30 posts
Gave thanks: 0
Thanked 0 times
|
the css path is, http://northflare.com/inc/stlye.css
I had this problem earlerier, messed with permissions and the file could be accessed, but it still didn't work properly. |
|
|
|
|
|
#9 (permalink) | |
|
﴾͡๏̯͡๏﴿...tweet
Super #1
Joined in Dec 2005
5,768 posts
Gave thanks: 147
Thanked 151 times
|
Quote:
1)Open your Index file and change the stylesheet line to look exactly like this: Code:
<link rel="stylesheet" href="http://northflare.com/inc/stlye.css" type="text/css"> 3(optional): Remove the paragraph style from the CSS document since you already have it set in the Body. It should look like this: Code:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
color: #ff0000;
text-decoration: none
}
__________________
poof
Last edited by Brandonnn; May 25th, 2007 at 8:23 PM. |
|
|
|
|