Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer IE equivalent to -moz- ???

    I've seen it before, but can't for the life of me remember at the moment.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Equivalent to -moz-what? There are a lot of -moz-xxx CSS styles.

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #6
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    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...

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #8
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by brothercake
    or use IE's conditional comments
    Forgive my ignorance...not sure what you are referecing here...got an example?
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #9
    Regular Coder
    Join Date
    Sep 2002
    Location
    self.location
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/de...omment_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:


    <![if lt IE 5]>
    <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 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

  • #10
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #11
    Regular Coder
    Join Date
    Sep 2002
    Location
    self.location
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "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]-->
    Last edited by realisis; 11-07-2002 at 05:40 AM.

  • #12
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 =)
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #13
    Regular Coder
    Join Date
    Sep 2002
    Location
    self.location
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 -

  • #14
    New Coder
    Join Date
    Jul 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    realisis........

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

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •