Why doesn’t CSS work after I go offline?

Iain Murray-Hsiao March 20, 2012
Pinterest Stumbleupon Whatsapp

The CSS was working fine on-line but no longer works off-line; I’m wondering if there is some function that I need to turn on?

  1. Mike
    March 21, 2012 at 6:23 pm

    I assume the CSS is in it's own file?
    Maybe you have used an absolut path e.g. "http://1.1.1.1/somefolder/file.css" instead of a relative one "./somefolder/file.css".

    As soon as you go offline the absolut path may not be available causing this problem.

  2. Christian Blandford
    March 21, 2012 at 1:36 am

    The browser could prove to be your problem, or if for whatever reason you have used CSS to embed a font into your webpage that isn't saved on your computer as well, the font will not show up properly offline.

  3. Karkala Nayak
    March 20, 2012 at 6:01 am

    Hi,
    Have you made sure there aren't any errors in your CSS or your HTML? If not. then You need to make sure that there aren't any errors in either your HTML or your CSS.
    Go to this CSS validator link and paste the URL of your website. It will validate your CSS and tell you if there are any errors
    CSS Validator: http://jigsaw.w3.org/css-validator/ 

    ALSO

    Try using other browsers as to me it also looks like a cache problem. Your browser maybe not able to save enough information about your site hence when you go offline the site lacks the usual features as the features are not stored in your cache. Try using Google Chrome or Mozilla Firefox.