Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Make CSS Work on 404 Error Page?

For some reason the CSS doesn't seem to be working on my error page (here's an example of a broken link).

I have no idea why this might be, the code is exactly the same as the code calling the CSS file in the other .html documents.

Suggestions?

Thanks

Tara

like image 762
Tara Avatar asked Aug 01 '11 08:08

Tara


2 Answers

The site cannot find the style.css file in the images folder

Change your markup to:

<link rel="stylesheet" href="/style.css" type="text/css" media="screen" />
like image 70
Curtis Avatar answered Oct 31 '22 22:10

Curtis


You 404 page contains a 404 error! The file /images/style.css does not exist. On the rest of the website yo refer to /styles.css so may be that is the correct path.

like image 31
Salman A Avatar answered Oct 31 '22 23:10

Salman A