CSS not loading: common causes and simple fixes

When a local website looks like plain text, the design is usually not gone. The browser simply cannot find the CSS file.

The problem

CSS often lives in folders such as css, assets or dist. If only the HTML file is sent, relative paths break. Case sensitivity, leading slashes and using a source project instead of a built export are also common causes.

Simple solution

  1. Open the complete website folder or ZIP, not just one HTML file.
  2. Check link tags with rel="stylesheet" and compare paths with the folder structure.
  3. Match file names exactly, including case.
  4. If you received a package.json project, ask for the finished build folder.
  5. Use the local report to identify missing files.

Common mistakes

Checklist

FAQ

Why does my HTML file have no design?

The browser can read the HTML, but it cannot find the linked stylesheet.

Can SitePreviewKit repair CSS?

It can surface missing files and path hints. The project or export still needs to be fixed.

Are absolute paths bad?

For handoffs, relative paths are usually more portable.

Related guides