I'm encountering an issue with linking a second stylesheet to my HTML document, and I'm struggling to identify the (hopefully glaringly obvious) problem.
My method of linking stylesheets in the head is as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" href="assets/css/global.css" type="text/css" media="all" title="Global styles" charset="utf-8">
<link rel="stylesheet" href="assets/css/ie.css" type="text/css" media="all" title="IE Overrides" charset="utf-8">
The issue lies in the fact that the second stylesheet is not having any effect at all. Even when I reverse their order, it remains ineffective.
To troubleshoot, I added a rule in the second stylesheet to make the background of the body red, and even tried using !important
, but unfortunately, nothing changed.
/* Global CSS */
body {
background-color: #fff;
}
/* IE CSS */
body {
background-color: #f00 !important;
}
In the Firebug net panel, I can see that both stylesheets are loading, and the style panel displays the styles from both. However, the rules in the second stylesheet just don't seem to be working.
This situation has left me perplexed, as it involves very basic concepts that I have successfully implemented many times before.