Second CSS file being ignored

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
SBukoski
Forum Contributor
Posts: 128
Joined: Wed May 21, 2003 10:39 pm
Location: Worcester, MA

Second CSS file being ignored

Post by SBukoski »

For some reason when I have two external stylesheets referenced, the first is read and all elements for that render. But the styles from the second are ignored. If I flip the order of the files around it will render the page based on the first (which was the second) and ignore the second (which was the first and worked before).

Any ideas why this could be happening?
SBukoski
Forum Contributor
Posts: 128
Joined: Wed May 21, 2003 10:39 pm
Location: Worcester, MA

Re: Second CSS file being ignored

Post by SBukoski »

Figured it out. I had different titles within each link. For some reason, browsers don't like that. So having the following will only use the first stylesheet and ignore the second.

Code: Select all

<link href="stylesA.css" title="MyStylesA" media="screen" type="text/css" rel="stylesheet">
<link href="stylesB.css" title="MyStylesB" media="screen" type="text/css" rel="stylesheet"> 
Post Reply