Local HTML files won't load CSS (IE-10)

tcloud

New member
Local time
6:45 PM
Messages
9
Accessing an html file using IE-10 from local hard drive won't load the style sheet. They work fine in Chrome, FF, Opera.

IE gives error:
"SEC7113: CSS was ignored due to mime type mismatch"

Example of extremely simple html file with linked style sheet -- that doesn't work:

Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/ietest.css">
</head>
<body>
<p>Lorem ipsum dolor sit amet, exire lugeo discumbe nisi ductus vehor matrimonio accipiam. Euro in fuerat construeret cena reges undis Tharsiam. Quos vero quo accumsan in lucem in. Tharsi nuntiatur ad te princeps coniungitur vestra. Ite in fuerat accidens inquit atque leno ut casus turbata.</p>
</body>
</html>
The CSS file (css/ietest.css)
Code:
body, div, p { font-size:14px; color:red; }
I have spent hours searching for answers and found some links (below) and some suggestions the problem might be related to the file association set for CSS. Below is output from ftype and assoc:

Code:
c:\>ftype  |  find /i  "css"
CSS3Menu="C:\Program Files (x86)\CSS3 Menu\Css3Menu.exe" "%1"
CSSfile=""
PhpED_css_file="C:\Program Files (x86)\NuSphere\PhpED\phped.exe" "%1"
vislbfile="C:\Program Files (x86)\CSS3 Menu\Css3Menu.exe" "%1"

c:\>assoc .css
.css=CSSfile
Possibly relevant links:
===========================
MIME-Handling Changes in Internet Explorer - IEBlog - Site Home - MSDN Blogs
IE10 won't open local CSS files
Internet Explorer security zones registry entries for advanced users

The page loads okay when I access it from my localhost server (XAMPP).

Any ideas / solutions ?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Vostro 460
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel i7-2600
Motherboard
Dell Inc. 0Y2MRG
Memory
10 GB
Graphics Card(s)
NVIDIA GeForce GT 420
Sound Card
(1) NVIDIA High Definition Audio
Screen Resolution
1920 x 1080 x 32 bits
Hard Drives
500 Gb; 2 TB
I haven't written any HTML or CSS for a while, and I'm not an expert on the subject either, but do you have the HTML script and the CSS script as two files? You can combine HTML and CSS into one file, that's how I used to always do it.
 

My Computer

Computer type
Laptop
This is not an option -- first, what is being done is standard and IE ought to work with it, both locally and remotely and second, I design web sites and there is no way I'm going to include all the styles into each page on the site. They must use linked style sheets.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Vostro 460
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel i7-2600
Motherboard
Dell Inc. 0Y2MRG
Memory
10 GB
Graphics Card(s)
NVIDIA GeForce GT 420
Sound Card
(1) NVIDIA High Definition Audio
Screen Resolution
1920 x 1080 x 32 bits
Hard Drives
500 Gb; 2 TB
I've created a multi-page website before too, each page had it's own separate CSS section. I do understand what you mean about IE, although, I'm sure I've read somewhere that IE doesn't usually comply to the web standards when it should.

I had all the pages linked together, unfortunately, I pulled down the website a while ago and moved all my tutorials and information to a blog, because the server (provided by a free hosting site) which I was using wasn't very good at all.
 

My Computer

Computer type
Laptop
Back
Top