Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

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

29 Aug 2013   #1

Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
Local HTML files won't load CSS (IE-10)

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:

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/ietest.css">
<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>
The CSS file (css/ietest.css)
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:

c:\>ftype  |  find /i  "css"
CSS3Menu="C:\Program Files (x86)\CSS3 Menu\Css3Menu.exe" "%1"
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
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 System SpecsSystem Spec
29 Aug 2013   #2
x BlueRobot


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 System SpecsSystem Spec
29 Aug 2013   #3

Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1

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 System SpecsSystem Spec

29 Aug 2013   #4
x BlueRobot


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 System SpecsSystem Spec

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

Thread Tools

Similar help and support threads
Thread Forum
Icons for .HTM/.HTML files show up like text files
Hello friends, I am using Windows 7 Ultimate SP1 64 bit. The icons for firefox HTM/HTML files are not displayed properly. They are displayed like Text files. I even configured the default icon for .htm/.html files in FileTypesMan utility. Still in the windows explorer, the files are shown as...
General Discussion
View HTML files other than IE
I'd like to view HTML files (both online and offline) in other than Internet Explorer and also Not use Sync Center. !) Any program that is better than another? 2) How do I set up Windows 7 to do this? Thanks David
Ransomware encrypted my files. All files have .html extension
Hello, System is a Toshiba Satellite L755-S5353 Windows 7 Home Premium 64-bit. Intel Pentium CPU B950 @ 2.10GHz 4GB RAM. This laptop came into my shop with the FBI screen. After making full backup and scanning with Malwarebytes, Superantispyware, and Symantec Endpoint Protection on my...
System Security
Deleting HTML files
In Windows XP & Vista you could configure the OS to delete all graphics associated with an HTML file. How do you do that in Windows 7? Thanks!
Setting HTML files as backgrounds
I found a flash on Newgrounds called Desktops of the future, and there were these...hard to describe desktops. One had this random kaleidoscope thing, another had a snake, and a penguin follow your mouse, anyway I thought it was cool. I saw a link that says I could get this kind of thing on my...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:16.
Twitter Facebook Google+