473,508 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS works locally but not when uploaded

3 New Member
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.

Thanks!
Nov 23 '05 #1
5 14780
Niheel
2,456 Recognized Expert Moderator Top Contributor
Can you paste your head tag from your html file here so I can see what's wrong?

Example:
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>
  6.  
Nov 23 '05 #2
fatherdaddy
3 New Member
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>
  7.  
  8. <A href="Index.html" border="0"><IMG SRC="Images/Header.JPG" border="0"></a><br>
  9.  
Nov 23 '05 #3
Niheel
2,456 Recognized Expert Moderator Top Contributor
Ok,

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
fatherdaddy
3 New Member
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.

fatherdaddy
Nov 23 '05 #5
Niheel
2,456 Recognized Expert Moderator Top Contributor
np, glad that you got it fixed.
Nov 23 '05 #6

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

Similar topics

4
5349
by: ConTactMe | last post by:
I got this code off of javascriptsource.com, and it works like a charm locally. I can't get it to work on the server. I need some coffee. I don't _DRINK_ *coffee*! Can anyone check out the...
2
1894
by: minchu | last post by:
Hello friends, I don't know about scripting. I have created a site with menu, it is working fine locally but when i upload it on the server it dosen't work. When I click on submenu under...
2
1570
by: Mr Marsh | last post by:
I have a problem with validation on a form that I've created. When I run the form locally the validation works beautifully, I've got comparison, required field and regular expression validation set...
10
2732
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
0
1092
by: Hrvoje Vrbanc | last post by:
Hello all! What would be the most convenient way to deploy a locally developed ASP.NET application on a remote server that has .NET Framework (correct version) installed but I don't have any...
0
1297
by: shotsy247 | last post by:
Hi All, I have created a navigation system using Flash and XML. It works when running on a Web server and on some machines when run locally (i.e. open an HTML page directly not through a Web...
2
2243
by: basestring | last post by:
Hi I am busy now for many hours without luck I have a database and when I use PHP to add date to it, it works only one time when i want to add the next data, It doesn't work. but i don't get any...
10
2520
by: rbenditt | last post by:
I've put together a simple script that uses the XMLHttpRequest() function. It works when I run it locally, but when I upload it to my web hosting account, I never get a response back. Here is what I...
2
1404
by: pedalpete | last post by:
I've got a php page which is outputing xml to a file. The code has been working without a hitch for weeks when running as localhost, but a few days ago I uploaded it to my ec2 instance, and it...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.