Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
If I try and link to multiple stylesheets in my master page, only the first sheet is being applied. The others are ignored.
For example:
<link type="text/css" rel="stylesheet" href="/css/main.css" /><link type="text/css" rel="stylesheet" href="/css/news.css" />
Only the main.css file is applied. If I swap them, then only news is applied.
Why?
Hi Connie,
Sounds like it's an issue with the XHTML self-closing tags - are you using an XHTML DOCTYPE?
Have you tried running the page through the HTML Validator (http://validator.w3.org) ?
Maybe try to remove the ending slashes, though I've never seen that as a problem for any browser...
/Chriztian
Hi Connie
As Chriztian is saying this is probably an issue that occurs because there is some element or tag in the code that has not been closed properly. Validation is your friend and can save you many headaches.
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Multiple stylesheets - additional sheets ignored
If I try and link to multiple stylesheets in my master page, only the first sheet is being applied. The others are ignored.
For example:
Only the main.css file is applied. If I swap them, then only news is applied.
Why?
Hi Connie,
Sounds like it's an issue with the XHTML self-closing tags - are you using an XHTML DOCTYPE?
Have you tried running the page through the HTML Validator (http://validator.w3.org) ?
Maybe try to remove the ending slashes, though I've never seen that as a problem for any browser...
/Chriztian
Hi Connie
As Chriztian is saying this is probably an issue that occurs because there is some element or tag in the code that has not been closed properly. Validation is your friend and can save you many headaches.
/Jan
is working on a reply...