View Full Version : DHTML Window widget (v1.1)

03-28-2008, 11:07 AM
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?

03-28-2008, 11:45 AM
Can you please make your link valid so we can see what script your having you problems with?

03-28-2008, 12:06 PM
sorry, the link must have changed. Here it is:


03-28-2008, 05:17 PM
The portions of the CSS that fail the validator I suspect are the lines dealing with opacity in IE, such as:


in modal.css, and:


in dhtmlwindow.css. From W3C (http://www.websitedev.de/css/validator-faq):

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:

<!--[if ie]>
<style type="text/css">



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.

03-28-2008, 06:32 PM
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.

03-29-2008, 07:20 AM
You mean -moz-opacity right? Opacity itself is a valid CSS property.

03-30-2008, 01:24 PM
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

03-30-2008, 01:44 PM
Then validate it in css3.