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

CSS Changes Not Showing: Cached Stylesheet and Specificity Problems

Either the browser loads an old file or another rule wins. Check both.

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.

Is the new file loading?

  1. Hard refresh (Ctrl+F5 or Cmd+Shift+R) or use a private window.
  2. In developer tools, open the Network tab and check the CSS file's size and time.
  3. Add a version query to the link (style.css?v=2) when you change it. See clearing every cache.

Is another rule winning?

  1. Inspect the element and look at the Styles panel: crossed-out rules lose.
  2. More specific selectors and later rules win.
  3. Avoid !important except as a last resort.
  4. A typo or missing bracket breaks all rules after it.

See CSS Layout Broken? Common Flexbox and Grid Fixes for Beginners.

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-21.