|
Posted by Vince Morgan on 11/19/06 07:15
"Vince Morgan" <vinhar@UNSPAMoptusnet.com.au> wrote in message
news:454be8c1$0$22937$afc38c87@news.optusnet.com.au...
> Hi All,
> I'm having a bit of a problem with a style sheet.
> I thought it could perhaps be a path problem, but I've eliminated that one
> by dropping it into the document root and the behaviour remained the same.
> The link is between the '<head></head>' tags and works in IE, but not
> Mozilla.
> So I tried '<style>@import url(..Styles/sheet.css); </style>' wich also
> works fine in IE, but didn't in Mozilla.
> As the page is generated via php I eventualy loaded the sheet into a var
and
> embedded it, which works fine in either browser.
> Although I've found a workable solution I'm still very curious and would
> like very much to know why the standard methods are not working for me in
> Moz.
> Any info or help with this is more than welcome,
> TIA
> Vince Morgan
>
>
Well, for what it's worth, I found the reason for this. I discovered that
it only happens after I add a <!DOCTYPE...> . Mozilla then requires that
the MIME type for the css be "text/css", and will not load if the MIME type
is presented as "text/plain", which is what my localhost server is
apparently serving up.
Regards,
Vince Morgan
Navigation:
[Reply to this message]
|