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 9 of 9
  1. #1
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts

    Question selectors that don't exist?

    I inheritted a system that several people had worked on. The resulting CSS was a bit of a surprise. In included several selector or variants that I don't recognize.

    Does anyone know what these selectors are?

    zoom
    \width
    w\idth
    _height
    *padding-bottom
    _margin-left
    _overflow
    _padding-left
    _height /**/:
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,859
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    _height property
    Posted: Wed, 2004-03-31 19:57

    Hi

    Adding an underscore in front of a style attribute is an IE hack, so before you remove it, are you sure you want to?

    Trevor


    From Google.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Very interesting read, including the embedded links in that thread.

    As it seems geared to IE5, you would think I might remove it. But I don't know what my users (anyone in the state of Illinios) are using so I'll just keep it and add a comment so the next guy won't be starting from zero.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #5
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    If it ("_") is purely an IE5 hack, then it is interesting, but not something that I will develop with. I'll keep it in there as it already exists, but comment it so the next guy doesn't start from zero.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its invalid CSS. You should use conditional comments for specific versions of IE.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    It seems to me that the link says that it will only work in the HTML and specifically not in the CSS. That would suggest that two different CSS pages would be conditionally loaded on the page with slight variations to accomodate IE5.

    While I hate duplicating pages like this, if it is needed then I will do it. The question becomes is it needed. Is it worth the duplication and complexity to accomodate IE5 in your opinion?
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You only put what needs to be fixed in the IE stylesheet not the entire stylesheet. If you are trying to clean up the code and make it valid then yeah do it unless you don't think your client cares about IE5 then don't or much less validation but thats kind of your job. For example
    Code:
    <!--[if lt IE 6]>
    <link rel="stylesheet" href="ie5style.css" type="text/css">
    <![endif]-->
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #9
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    I think I see. Put the first CSS. Then conditionally put the IE5 fixes using the conditional statements. That makes more sense than the way I was thinking of.

    Frank mentioned that "_" was a similar hack. You don't happen to have a thread detailing that like the excellent one on "\" do you?

    [edit - found it at http://codingforums.com/archive/index.php?t-72058.html]
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls


  •  

    Posting Permissions

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