473,587 Members | 2,466 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 14790
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
5364
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 following link, and tell me why it doesn't work? Thanks. http://www.spvision.com/pubimages/DisneySnowGlobe/index.html
2
1907
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 "Company" or "Products",It will show the actual url in the address bar but it gives a error "405 - resource not allowed". Kindly check and let me know the...
2
1574
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 up. When I try to proceed without entering required information the summary kicks in and this is done client side - my understanding is that...
10
2743
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 preview DIV) 2. when users close the dialog, the application receives the URL to the selected graphic. 3. the modal dialog lets the users upload a new...
0
1101
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 control over it? I tried simply copying files, then I created a Web Setup project locally and built it. I have then installed the application locally...
0
1305
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 server) but on other machines when run locally it doesn't work. I have set the Advanced IE settings to default on both machines. Are there any...
2
2249
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 errors??? see my code: $query = "INSERT INTO products VALUES ...
10
2539
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 have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html lang="en"> <head> <script type="text/javascript"...
2
1412
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 doesn't seem to work. the data is stored in $xml_output, and I've added the "echo xml_output" at the bottom of the page to see what the page is...
0
7920
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8347
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5394
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.