By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,492 Members | 1,987 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,492 IT Pros & Developers. It's quick & easy.

IE 5.2 on Mac - no stylesheet??

P: n/a
My site pages look ok in most browsers, including Safari on
the Mac. With Mac's IE 5.2 the stylesheet is ignored.

I've tried both @import and <Link. Any suggestions?

Second question: assuming I don't want to add styles
below the @import, is there any advantage in using it?
How choose between @import and <Link ??

Mason C
Jul 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
In article MasonC wrote:
My site pages look ok in most browsers, including Safari on
the Mac. With Mac's IE 5.2 the stylesheet is ignored.
URL?
I've tried both @import and <Link. Any suggestions?
What syntax. IIRC, it is meaningful at least with first
Second question: assuming I don't want to add styles
below the @import, is there any advantage in using it?
IE3 and IE4 may not understand it. Nobody should use them anyway, so not
big advantage. I have personally never useed it, as IE4 has surprisingly
good ability to ignore stuff it doesn't know (compared to NN4...)
How choose between @import and <Link ??


Which happens to work better/worse on browsers you care. Anyway, avoid
situation where you have @import in external stylesheet, as it makes
loading it slower, as there is more http requests needed to get it.

(very often people put their "advanged" css to this way, and cause flash
of suboptimally styled content...)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #2

P: n/a
Have you been consistent with your capitalization? IE5 Mac is one of the
few (the only?) browser that is case sensitive when it comes to
stylesheets, so a class defined as .Important (say) won't show if you
include it as style="important"

eifion

MasonC wrote:
My site pages look ok in most browsers, including Safari on
the Mac. With Mac's IE 5.2 the stylesheet is ignored.

I've tried both @import and <Link. Any suggestions?

Second question: assuming I don't want to add styles
below the @import, is there any advantage in using it?
How choose between @import and <Link ??

Mason C

Jul 20 '05 #3

P: n/a
or class="important" even..... (oops)
Eifion wrote:
Have you been consistent with your capitalization? IE5 Mac is one of the
few (the only?) browser that is case sensitive when it comes to
stylesheets, so a class defined as .Important (say) won't show if you
include it as style="important"

eifion

] Mason C
Jul 20 '05 #4

P: n/a
MasonC wrote:
My site pages look ok in most browsers, including Safari on the Mac.
With Mac's IE 5.2 the stylesheet is ignored.

I've tried both @import
Mac IE 5.x is very fussy about the syntax of import statements. What is
the exact @import statement you're using?
assuming I don't want to add styles below the @import, is there any
advantage in using it?
@import hides styles from incapable browsers (NN 4.x, IE 4.x, etc.).
Linked stylesheets may or may not be hidden, depending on the syntax.
How choose between @import and <Link ??


What are you specific goals?

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #5

P: n/a
On Mon, 03 May 2004 00:50:34 GMT, Brian <us*****@julietremblay.com.invalid> wrote:
MasonC wrote:
My site pages look ok in most browsers, including Safari on the Mac.
With Mac's IE 5.2 the stylesheet is ignored.

I've tried both @import


Mac IE 5.x is very fussy about the syntax of import statements. What is
the exact @import statement you're using?
assuming I don't want to add styles below the @import, is there any
advantage in using it?


@import hides styles from incapable browsers (NN 4.x, IE 4.x, etc.).
Linked stylesheets may or may not be hidden, depending on the syntax.
How choose between @import and <Link ??


What are you specific goals?


OK in as many *modern* browsers as practical. I test in Opera
MSIE 6, Netscape, Mozilla, Firefox, Safari(mac), and IE5.2(mac)

All are ok except mac's IE5.2 ignores my stylesheet imported
by:

<STYLE type="text/css"> @import url(1main1.css) </STYLE>

I tried <LINK REL="stylesheet" TYPE="text/css" HREF="1main1.css">

with the same result: ignored by mac's IE5.2

I gather that "@import" may be the better choice so as to stay out
of trouble with older browsers. The pages are readable unstyled, but
sure not "pretty."

FYI: http://masonc.home.netcom.com

Thank you, Lauri, Eifion, and Bryan

Mason C
Jul 20 '05 #6

P: n/a
In article <7r********************************@4ax.com>,
MasonC <ma****@ix.netcom.xyz.com> wrote:
All are ok except mac's IE5.2 ignores my stylesheet imported
by:

<STYLE type="text/css"> @import url(1main1.css) </STYLE>

I tried <LINK REL="stylesheet" TYPE="text/css" HREF="1main1.css">

with the same result: ignored by mac's IE5.2


The problem is that you've wrapped the whols style sheet in "@media
screen". IE/Mac ignores @media blocks, as documented at
<http://w3development.de/css/hide_css_from_browsers/media/>.

--
Eric A. Meyer - http://www.meyerweb.com/eric/
Jul 20 '05 #7

P: n/a
On Mon, 03 May 2004 13:20:34 GMT, "Eric A. Meyer" <er**@meyerweb.com> wrote:
In article <7r********************************@4ax.com>,
MasonC <ma****@ix.netcom.xyz.com> wrote:
All are ok except mac's IE5.2 ignores my stylesheet imported
by:

<STYLE type="text/css"> @import url(1main1.css) </STYLE>

I tried <LINK REL="stylesheet" TYPE="text/css" HREF="1main1.css">

with the same result: ignored by mac's IE5.2


The problem is that you've wrapped the whols style sheet in "@media
screen". IE/Mac ignores @media blocks, as documented at
<http://w3development.de/css/hide_css_from_browsers/media/>.


Thank you ! :-))

Mason C

Jul 20 '05 #8

P: n/a
MasonC wrote:
All are ok except mac's IE5.2 ignores my stylesheet imported
by:

<STYLE type="text/css"> @import url(1main1.css) </STYLE>


There are several possible syntaxes, all permissable according to the
standard, but IE/Mac 5.x only understands some of them. Try

@import "main1.css";

Also note Eric Meyer's helpful advice re: @media rules. (That's a very
convenient way to hide rules only from Mac IE.)

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #9

P: n/a
Brian wrote:

@media rules. (That's a very
convenient way to hide rules only from Mac IE.)


FYI, MacIE is not the only browser that doesn't support @media rules.
iCab and pre-4.5 OmniWeb don't for sure, maybe other browsers don't, either.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #10

P: n/a
How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post

Eifion wrote:
MasonC wrote:
My site pages look ok in most browsers, including Safari on
the Mac. With Mac's IE 5.2 the stylesheet is ignored.
Have you been consistent with your capitalization? IE5 Mac is one of the
few (the only?) browser that is case sensitive when it comes to
stylesheets,
What do you mean by this? In the url of the stylesheet? How does the
client play into what happens on the server? If the client requests
"/Foo.baR", the request should be made for "/Foo.baR", not "/foo.bar",
not "FOO.BAR", nor any other variant. Have you tested IE/Mac and found
that it behaves otherwise?
so a class defined as .Important (say) won't show if you
include it as style="important"


Following the spec.

http://www.w3.org/TR/html401/struct/global.html#h-7.5.2

It's how Mozilla, for one behaves. I'm reasonably sure that Opera does
likewise. So IE/Mac is not the only, and apparently not even one of the
few, to behave this way.

In any case, this has no bearing on the op's problem, since the
stylesheet didn't work in its entirety.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #11

P: n/a
kchayka wrote:
Brian wrote:
@media rules. (That's a very convenient way to hide rules only from
Mac IE.)
FYI, MacIE is not the only browser that doesn't support @media rules.
iCab and pre-4.5 OmniWeb don't for sure


Thanks for the errata. :-) OmniWeb and iCab are a bit outside of the
range of my radar, if you get my drift. I know very little about them,
and I'm afraid I've never tested any sites with them.
maybe other browsers don't, either.


Certainly NN4; I'm starting to assume that regulars know its
limitations, and that most hide css from it entirely. Ditto for IE4. I
don't know when Opera started to support it. I wasn't aware of Opera
until fairly recently, and only started testing with it at v>7.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #12

P: n/a
Eric A. Meyer wrote:
IE/Mac ignores @media blocks, as documented at
<http://w3development.de/css/hide_css_from_browsers/media/>.


Or <http://w3development.de/css/assigning_external_css/at_media.html>
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.