473,770 Members | 6,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE 5.2 on Mac - no stylesheet??

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
12 2046
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
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="importan t"

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
or class="importan t" 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="importan t"

eifion

] Mason C
Jul 20 '05 #4
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
On Mon, 03 May 2004 00:50:34 GMT, Brian <us*****@juliet remblay.com.inv alid> 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.cs s">

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
In article <7r************ *************** *****@4ax.com>,
MasonC <ma****@ix.netc om.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.cs s">

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.d e/css/hide_css_from_b rowsers/media/>.

--
Eric A. Meyer - http://www.meyerweb.com/eric/
Jul 20 '05 #7
On Mon, 03 May 2004 13:20:34 GMT, "Eric A. Meyer" <er**@meyerweb. com> wrote:
In article <7r************ *************** *****@4ax.com>,
MasonC <ma****@ix.netc om.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.cs s">

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.d e/css/hide_css_from_b rowsers/media/>.


Thank you ! :-))

Mason C

Jul 20 '05 #8
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
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3103
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="abc-xsl.xsl"?> <!ELEMENT ABCMessage (Tag1, Tag2, Tag3, Tag4, Tag5, Tag6, Tag7, Tag8*)> <!ATTLIST ABCMessage
1
1660
by: Steven An | last post by:
I'm gonna describe the situation I'm dealing with..but if you're not interested, just skip to the last line where I bluntly ask my question :) Here's my scenario: I've got a huge website that has many pages. Each page has its own content (which changes often). So I wanna use XSLT stylesheets to create these pages (so I can modify the appearance of the whole site easily). So that's pretty straightforward: one XML file per page, with a...
4
3319
by: Catherine Lynn Smith | last post by:
OK, I am learning my way around the new DOM, but I am still at a loss on finding a few things. I have an HTML document that links to a stylesheet. /* START STYLESHEET EXAMPLE */ /* styles/mystyles.css */ ..leftnav { font-family: Arial, Helvetica, sans-serif; font-size: 13pt;
5
6114
by: David Trimboli | last post by:
I'm writing HTML 4.01 and CSS 2 pages that include a CSS-driven pop-up menu. What I'm trying to do is create a screen style that uses the menu, links, etc. normally, and a print style that removes all of this and just presents the main content. I'm pretty sure all my code is up to spec (everything validates), even if the design isn't heart-stopping. However, Firefox seems to choke on the stylesheets. When the screen style is declared...
7
5207
by: pintihar | last post by:
Hi, As a follow on from an earlier post I have another question about xslt. Is it possible to create the stylsheet programatically? Is this sensible? In the first phase I needed to map element name from inbound xml to my internal elements to standardize disparate input. Now I could just create an xslt stylesheet for each possible inbound format and be done, but I think it would be powerful to be able store this mapping in a database and...
0
1213
by: barney.b | last post by:
Hi, I'm trying to pre-process an XSL stylesheet with another stylesheet, before using the result to transform an XML document. i.e.: stylesheet(xsl) --> preprocessor(xsl) --> temp(xsl) input(xml) --> temp(xsl) --> output(xml) but I'm getting a NullPointerException. I'm not 100% sure exactly what is going on here, so if someone could help I'd be grateful.
0
1430
by: hq4000 | last post by:
Given AStyleSheet.xsl : <AStyleSheet> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.mytest.mytest2.mytest3.com" version="1.0"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <xsl:element name="Test">it works</xsl:element> </xsl:template>
3
3305
by: gdelfino | last post by:
I have an XML file which I transform into XHTML using stylesheetA.xsl. I also have stylesheetB.xsl which transforms my XML file into an Excel XML document. As both Excel and most new browsers have a built in XSTL engine, I decided to add the stylesheet information to the original XML file. Like this <?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml-stylesheet href="stylesheetA.xsl" type="text/xsl" media="excel"?>
15
1784
by: Scott W Gifford | last post by:
Hello, We've got a Web-based application written in Perl that is designed to integrate as a frame into many different Web sites. We currently have several stylesheets available to allow the user to match the look and feel to their existing Web site. We're considering allowing our users to host their own stylesheet, and just pass in its URL as a CGI parameter. Something like this: ...
1
1684
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but without most of the drawbacks (in particular, unlike real frames, this method is bookmarks-friendly and search engine-friendly). However, the method still has sufficient drawbacks from an accessibility point of view that I have been planning to...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.