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 3 of 3
  1. #1
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,097
    Thanks
    15
    Thanked 1 Time in 1 Post

    Question DXImageTransform.Microsoft.Alpha doesnt validate

    Code:
    #dhtmltooltip{
    position: absolute;
    width: 150px;
    border: 1px solid black;
    padding: 2px;
    background-color: blue;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size:9px;
    visibility: hidden;
    z-index: 100;
    /*Remove below line to remove shadow. Below line should always appear last within this CSS*/
    filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
    
    .myIframe,.myIframe0,.myIframe2_R,.myIframe2_M,.myIframe3,.myIframe4,.myIframe5,.myIframe6 {
    width: 730px;
    height: 100px;
    position: absolute;
    bottom: 0px;
    left: 3%;
    filter: "progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=0)";
    z-index: 9;
    border-color: #000000;
    border: 1;
    }


    Code:
    Line: 200 Context : .myIframe, .myIframe0, .myIframe2_R, .myIframe2_M, .myIframe3, .myIframe4, .myIframe5, .myIframe6
    
    Property filter doesn't exist : "progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=0)" 
    
    ----------------------------------------------------------
    
    Line: 181 Context : #dhtmltooltip
    
    Parse Error - DXImageTransform.Microsoft.Shadow(color=gray,direction=135);

    When i try to validate my stylesheet on W3, it gives me errors on these lines above?

    Is there anyway i can fix it to allow it validate?

    Thanks.

    Picco

  • #2
    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 can take those out and put them into an IE only stylesheet using conditional comments to hide them from the validator and other browsers.
    Code:
    <!--[if IE]>
    <link rel="stylesheet" href="iestyle.css" type="text/css" />
    <![endif]-->
    iestyle.css
    Code:
    #dhtmltooltip {
    filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
    }
    .myIframe,.myIframe0,.myIframe2_R,.myIframe2_M,.myIframe3,.myIframe4,.myIframe5,.myIframe6 {
    filter: progid:DXImageTransform.Microsoft.Alpha(style=0, opacity=0);
    }
    More about CSS conditional comments here.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    What aero didn't specifically say is, the reason that code does not validate is that it is not standard code and only works in IE.


  •  

    Posting Permissions

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