Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS loaded but not applied

Tags:

html

css

Sorry if I repeat, but I couldn't find the answer. This is my website: http://www.stolems.com/pl

My problem is that files css loaded but doesn't applied. I tried in FF, Chrome, Safari and still nothing. But when I load style in tag style it works. What can I do? I noticed that my files css are mime type text/html it should be text/css?

Besides I loaded at this site admin dashboard and template. Admin dashboard works, template not..

like image 846
Justyna Szewczyk Avatar asked Jan 10 '23 22:01

Justyna Szewczyk


1 Answers

Your server is serving .css files with MIME type text/html. It should be text/css. Just tell your server administrator and they will fix it for you.

If you see the console in chrome, it says:

Resource interpreted as Stylesheet but transferred with MIME type text/html.

And in firefox:

The stylesheet was not loaded because its MIME type, "text/html", is not "text/css".

This happened for your .js files too.

like image 142
dashtinejad Avatar answered Jan 18 '23 14:01

dashtinejad