Why won't the CSS file for my website work?
I have just bought my website and am trying to upload a page that tells everyone that it is still under construction. The html file works but nothing to do with the CSS works, I have published both to my web host but it isn't working. I got the website from a free template and I have edited it. When i preview the file in firefox or IE it works fine and uses my CSS file too, what could it be? and how do I solve it? (I have made sure that my html file is called 'index.html', do i have to call the CSS file something its called 'style' at the moment)
Public Comments
- First thing I would do is clear the cache for your browser. The incorrect version of your site may be stored and needs to be cleared so your browser gets a new copy of it. If you change the name of the .css file you should be sure to change the src attribute in the link tag if you are using one to load the css file.
- It's probably just not being found... Make sure that the reference to the CSS file in index.html actually points to the location on the server - and make sure you've uploaded the CSS file.
- Could you link to it? "its called 'style' at the moment" What I'm guessing is that you defined a style class, but didn't apply it to anything. If you define a style, by doing something like ".style1" then in the html tags you need to point to it, like this: <div class="style1"> or in a table <td class="style1"> The other thing you could try doing is doink a link <a> and copy paste the URL to the style sheet (it's an external file, right?) and see if it's a broken URL.
- Read the 'Under Construction" bandwidth bloat on the internet a flashing underconsstruction sign just labels you as a newbie and makes your page slower. Who ever you send there knows your working on it. You may have to turn the css option on and pay for it.
Powered by Yahoo! Answers