...

View Full Version : IE equivalent to -moz- ???



beetle
11-04-2002, 06:51 PM
I've seen it before, but can't for the life of me remember at the moment. :rolleyes:

Roy Sinclair
11-04-2002, 07:58 PM
Equivalent to -moz-what? There are a lot of -moz-xxx CSS styles.

beetle
11-04-2002, 08:02 PM
No, I read here a while back in another post (tried searching, couldn't find it) that the -moz- should precede any Mozilla-only style-rule. There was similarly, a denotation for IE, but it's not -ie-

You follow?

Roy Sinclair
11-04-2002, 08:04 PM
Why would it matter, MS hasn't used it yet. All the extensions MS has created so far weren't named using that format so...

beetle
11-04-2002, 08:15 PM
I see. Ok....I was hoping to get mozilla to ignore the cursor rule I'm using that points to a URI. for some reason...Mozilla is defaulting to the text cursor (the t-bar)

jkd
11-04-2002, 08:18 PM
Microsoft has completely disregarded W3C's naming scheme for custom CSS properties. As in, there is no vendor-prefix, which has forever ruined the possibility of using something like "filter" or "behavior" as standard CSS properties in the future...

brothercake
11-06-2002, 06:46 PM
Originally posted by beetle
I see. Ok....I was hoping to get mozilla to ignore the cursor rule I'm using that points to a URI. for some reason...Mozilla is defaulting to the text cursor (the t-bar)


Do it conditionally; either document.write the style info, or use IE's conditional comments

beetle
11-06-2002, 06:55 PM
Originally posted by brothercake
or use IE's conditional comments Forgive my ignorance...not sure what you are referecing here...got an example?

realisis
11-07-2002, 04:34 AM
Hi beetle, allow me if I may...

MSDN is such a wealth of information, but it's almost impossible to find a given page the second time around...

Here ya go:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

Sheer genius: CCs can be used to selectively include or exclude distinct versions of IE as of v5.0. Can also be used to sniff out IE from those "other" browsers. Please note: CCs are tags, not javascript, so you don't have to worry about users "turning off" the recognition. The sniffing is foolproof, as it's based on a modification of the comment indicators <!-- -->. Any HTML content can be nested.

I remember also a while back seeing another website giving a tutorial on CCs, but can't find the url right now... maybe bignosebird?

...

examples:


<!>
<STYLE>
<!--
browsers don't understand the outer tag, so they parse the contents and render them; IE knows it's a conditional comment and ignores the contents
-->
</STYLE>
<![endif]>

<!--[if IE 5]>
browsers interpret the container tags as comments and ignore the contents. IE knows that only version 5.0 should parse contents.
<![endif]-->

<!--[if gte IE 5]>
<STYLE>
same as previous, but now we've included all versions of IE as of 5.0
</STYLE>
<![endif]-->

There are a few additional subtle syntax rules - read the MS link for details.
...

Another alternative:

(Your example involves only IE6.0, so I make this next suggestion only for your general info).

You can also define a style which all browsers see (including IE), and then "fix" the other browsers by defining a second style which excludes [I]only IE by nesting the <style></style> tags in IE's proprietary <comment></comment> tags. This excludes all versions of IE as of v3.0, and operates in the same way that NS4's <nolayer> tag excludes only NS4.

example:

<style>
<!--
body { cursor:auto; }/*all browsers parse*/
-->
</style>

<comment>
<style>
<!--
body { cursor:auto; }/*all browsers but IE modify the first declaration*/
-->
</style>
</comment>

result: IE cursor = crosshairs; all other browsers cursor = auto

beetle
11-07-2002, 05:31 AM
Huh. Interesting. Don't think it'll help me (I want something that will go in my external CSS files for a single rule...) but interesting nonetheless. Thanks for the link :D

realisis
11-07-2002, 05:38 AM
"Huh. Interesting. Don't think it'll help me (I want something that will go in my external CSS files for a single rule"

um, er...

<!--[if gte IE 6]>
<link rel=stylesheet type="text/css" href="cursor.css">
<![endif]-->

beetle
11-07-2002, 05:54 AM
I realize that realisis (I'm not THAT thick) I just don't want to have to define a separate CSS file just to handle my IE6 cursors each with a separate (duplicate) selector. I will keep this in mind moving foward, however.

Thanks again =)

realisis
11-08-2002, 05:09 AM
sorry beetle, I know from your other posts that you're not <font weight="thick!!!!">thick</font>... I thought only that you might be having one of those momentary lapses - the kind that cause you to slap your forehead afterwards... I know I sure get 'em.

Cheers -

Pooh
11-08-2002, 12:05 PM
realisis........:thumbsup:

I thought I'd read most of Microsoft's material there at the library.....Must of missed that one.

brothercake
11-08-2002, 04:12 PM
Originally posted by realisis
I remember also a while back seeing another website giving a tutorial on CCs, but can't find the url right now

That tutorial is on JSK - http://javascriptkit.com/howto/cc2.shtml



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum