Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

CSS stops working when uploaded?

I built a website and to achieve rounded corners I used CSS. Everything works perfectly locally but when I upload the website to the server, none of the CSS works at all. What can I do to get the CSS working?

Update:

My site is at: http://www.chrisny.tk/

Update 2:

The link fix worked. Thank you SO MUCH!

2 Answers

Relevance
  • Anonymous
    1 decade ago

    You are likely running into a common mistake when using linked CSS documents. Make sure your link is working. Should be something like <link rel="stylesheet" type="text/css" href="main.css" /> (xhtml style, drop the / at the end if not using XHTML 1.0). If you are using CSS in a folder then you would want href="foldername/main.css" OR you could use a direct link like href="http://www.nigttimewebdesign.com/styles/default.cs... that way no matter where you are it will link.

    If it is embedded then I would have to see what it looks like in the page, but I can't imagine why that would make a difference once uploaded.

    You can try www.w3.org to validate your webpage which will show you problems in your code as well.

    Hope that helps :-)

    Source(s): www.nighttimewebdesign.com, www.w3.org
  • Anonymous
    1 decade ago

    If you give me a link to your site, I'll be able to tell you straight away.

    It'll likely be something simple with the link to your stylehsheet being wrong.

    Source(s): Director: http://www.cogocreative.co.uk/
Still have questions? Get your answers by asking now.