Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

css does not load

  • 10 replies
  • 8 have this problem
  • 12 views
  • Last reply by cor-el

Hello,, I am a creative designer from the netherlands currently working on a project but for the first time i got a problem and cant fix it.

i am working on an website roestengineering.com but firefox does not load the css file but ie does.

please any help is welcome.

Hello,, I am a creative designer from the netherlands currently working on a project but for the first time i got a problem and cant fix it. i am working on an website roestengineering.com but firefox does not load the css file but ie does. please any help is welcome.

Chosen solution

The main HTML file is still in UTF-16 format and also has the UTF-16 Byte Order Mark at the start of the file although you've changed the meta tag.
So you need to save that file again in the editor and make sure not to add a BOM (the file size should shirk to the half, about 8 KB).

There are also tab characters in the CSS file that you may want to remove or change to spaces.

Read this answer in context 👍 2

All Replies (10)

hello, i'm no expert in web developing, but when i look at the source code of the page in firefox & open the css/stylex.css stylesheet it just shows some asian looking characters - maybe this is the problem...

when i open css/stylex.css it shows the source not asian looking characters

it looks like in the screenshot attached for me. when i change the encoding in view > character encoding from utf-16 to utf-8, i see meaningful text again.

when i check the site with http://validator.w3.org/ it also results in the following error: "Internal encoding declaration utf-8 disagrees with the actual encoding of the document (utf-16)."

changed the charset <meta http-equiv="Content-Type" content="text/html; charset=UTF-16"> doesnt work for me

but this is how my source looks

That is a problem with the encoding.
Them main page is Unicode (UTF-16) encoded (BOM UTF-16, litte-endian and meta tag).

<meta http-equiv="Content-Type" content="text/html; charset=UTF-16">

The stylesheet is in UTF-8 encoding.
Firefox doesn't like such a mixture and requires to have all the files in the same encoding, so you need to fix that and save the CSS file as well in UTF-8 or UTF-16 encoding in the editor and re-upload the file.
It is probably best to save both files as UTF-8 and make sure not to add a byte order mark when saving the file.

Modified by cor-el

doens't work either just did try that

Chosen Solution

The main HTML file is still in UTF-16 format and also has the UTF-16 Byte Order Mark at the start of the file although you've changed the meta tag.
So you need to save that file again in the editor and make sure not to add a BOM (the file size should shirk to the half, about 8 KB).

There are also tab characters in the CSS file that you may want to remove or change to spaces.

oke did that didnt work either,, used notepad selected UTF-8 code to safe for index.html and stylex.css but stil doenst work wen i upload it

thnx all problem fixed thanks very much

You're welcome.

Correcting such encoding errors isn't always easy.