472,133 Members | 1,250 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

CSS works locally but not when uploaded

My son is tryng to build a website and has used a .css file. There is an index.html and some other .html pages, and Images folder wiht all images, and his .css file. When we launch on our computers (click Index.html) everything runs beautifully, and all styles (fonts) are realized. When we upload teh identical files to our server, everything works well (navigatio, pages, etc.) EXCEPT there is no effect from the .css file. It just looks like we didn't upload the .css file.

We have repeated the process, with same results. We are both newbies to .css files (and HTML period), so we may be making a very fundamental error. Any suggestions would be greatly appreciated.

Nov 23 '05 #1
5 14307
2,452 Expert Mod 2GB
Can you paste your head tag from your html file here so I can see what's wrong?

Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  3. <title>Sample Site</title>
  4. <link href="styles.css" rel="stylesheet" type="text/css" />
  5. </head>
Nov 23 '05 #2
Thanks for the quick reply. Here's what I think you are asking for:

Expand|Select|Wrap|Line Numbers
  1.  <HTML> 
  2. <Head>
  3. <link href="Psi.css" rel="stylesheet" type="text/css" />
  4. <Title>Protech Solutions</title>
  5. </head>
  6. <body>
  8. <A href="Index.html" border="0"><IMG SRC="Images/Header.JPG" border="0"></a><br>
Nov 23 '05 #3
2,452 Expert Mod 2GB

When you upload to your server check to see that the CSS file is also uploaded and in the same folder as your index.html file.

Double check the case of the file name. Is it Psi.cc or psi.css?

Other than that it looks correct. Maybe you can send me a link to the domain where it's hosted and I can take a closer look.

Refresh your browser too, just in case.
Nov 23 '05 #4
Much thanks -- it's working!

We just deleted all uploads, then uploaded again and it works. Either user error or some hosting site problem. Either way it was very useful to have you confirm the code and to validate the debugging steps.

This forum is great -- thanks again and I'm sure we'll be back. Maybe someday we can help rather than just be helped.

Nov 23 '05 #5
2,452 Expert Mod 2GB
np, glad that you got it fixed.
Nov 23 '05 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by ConTactMe | last post: by
2 posts views Thread by Mr Marsh | last post: by
10 posts views Thread by Guadala Harry | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.