Guides › HTML / PHP sites › Site down or error screens

CSS Not Loading or Not Applying: Path, Cache and Specificity Checks

Your style changes do not show. Check the file path, the cache and which rule wins.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

If CSS does not load, or loads but nothing changes, the cause is usually a wrong path, an old cached copy, or another rule winning. A quick check of each finds it.

1Check the file loads2Fix the path3Check the link tag4Clear caches5Inspect the element6Fix specificity7Check for typosFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Check the file loads

Illustration for Step 1: Check the file loads

In F12, Network, reload and filter by CSS. If your file is red or 404, the path is wrong. Open its address in a new tab to check.

Step 2: Fix the path

Illustration for Step 2: Fix the path

A link like href="style.css" is relative to the page. Use a root path such as /css/style.css or the full address.

Step 3: Check the link tag

Illustration for Step 3: Check the link tag

Make sure it reads <link rel="stylesheet" href="..."> and sits inside the head.

Step 4: Clear caches

Illustration for Step 4: Clear caches

Hard refresh, then purge your site cache and CDN. Add a version such as style.css?v=2.

Step 5: Inspect the element

Illustration for Step 5: Inspect the element

Right-click the element, Inspect. In Styles, crossed-out lines show your rule is overridden by another with higher specificity.

Step 6: Fix specificity

Illustration for Step 6: Fix specificity

Make your selector more specific, or place your file after the others. Use !important only as a last resort.

Step 7: Check for typos

Illustration for Step 7: Check for typos

A missing semicolon or brace can stop all the rules after it.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.