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
tcloud

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:

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 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
tcloud

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
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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
Software
I am looking for a program that can ExtractData from .html files .
Hello & Thanks : I am looking for a program that can ExtractData from .html files . Namely : I want to extract all "http://*.flv" lines to a separate file . Anyone know of such an animal ? ..Vernon
Software
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
How to import html files into onenote?
How to import html files into onenote? I have so many html files and their folders and files. Is it possible to import these html files into onenote?
Microsoft Office
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!
Drivers
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...
Customization


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 04:05.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App