Results 1 to 8 of 8

Thread: DHTML Window widget (v1.1)

  1. #1
    Join Date
    Feb 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget (v1.1)

    1) Script Title: DHTML Window widget (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem: Is there a way to make the CSS used for this script validate?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Can you please make your link valid so we can see what script your having you problems with?
    Jeremy | jfein.net

  3. #3
    Join Date
    Feb 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry, the link must have changed. Here it is:

    http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The portions of the CSS that fail the validator I suspect are the lines dealing with opacity in IE, such as:

    Code:
    filter:progid:DXImageTransform.Microsoft.alpha(opacity=80);
    in modal.css, and:

    Code:
    filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
    in dhtmlwindow.css. From W3C:

    The CSS Validator validates your style sheet against some profile, e.g. CSS Level 1 or CSS Level 2. Some browser Vendors however extend these profiles by new properties like Microsoft did with the scrollbar-base-color or filter property or Mozilla with the -moz-opacity property. The Validator is not aware of these properties and using them makes your style sheet invalid in terms of the CSS specifications. Either get rid of those properties or live with the fact, that your style sheets don't validate. You cannot have both.
    One thing you can do is remove the non standard lines in your CSS that concerns IE, and use conditional HTML to output them:

    Code:
    <!--[if ie]> 
    <style type="text/css">
    
    .drag-handle{
    filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
    }
    
    #interVeil{
    filter:progid:DXImageTransform.Microsoft.alpha(opacity=80);
    }
    </style> 
    <![endif]-->
    This should take care of IE, though there are also lines used in the CSS that are Firefox only, such as -moz-opacity: 1;, so you may need to deal with those some other way.

  5. #5
    Join Date
    Feb 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, I took care of that, but the opacity attribute on the #interVeil class is invalid, and is required for mozilla to have the transparent look for the background.

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You mean -moz-opacity right? Opacity itself is a valid CSS property.

  7. #7
    Join Date
    Feb 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm referring to opacity, which isn't validating on the W3C CSS Validator. Here is what the validator says:

    319 #interVeil Property opacity doesn't exist in CSS level 2.1 but exists in [css3] : 0.7

  8. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Then validate it in css3.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

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