...

View Full Version : Small CSS problem



Autn5
02-07-2012, 04:37 AM
Here is my simple page
<html>
<head>

<link rel="stylesheet" type="text/css" href="/public_html/css/Style.css" />
</head>
<body>
<h1> Text </h1>
</body>
</html>

and here is my simple CSS page I'm trying to link to

body
{
background-color:#d0e4fe;
}
h1
{
color:orange;
text-align:center;
}
p
{
font-family:"Times New Roman";
font-size:20px;
}


Why isn't it working? is there a direct problem with any of my code?
I believe I have the link correct, my page is in the Public_html directory and in that directory is my css directory in which my CSS is is named Style.css


Could someone please help?

yennijb
02-07-2012, 04:47 AM
Try taking out the /public_html/ portion. That is the folder your entire website is in.

The link should just start with /css/ because that is the folder you will need to go into from where the file you are in is.

This is assuming your hierarchy looks like this:

index.html
/css/
Style.css



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum