473,586 Members | 2,863 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 14789
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
7839
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
8200
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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
7954
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
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3836
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
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.