Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Apr 18, 2011 @ 23:57
    Connie DeCinko
    0

    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:

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

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Apr 19, 2011 @ 01:22
    Chriztian Steinmeier
    1

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 19, 2011 @ 07:28
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft