Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-27-2006, 04:49 PM   PM User | #1
crmpicco
Senior Coder

 
crmpicco's Avatar
 
Join Date: Jan 2005
Location: Mauchline, Scotland
Posts: 1,091
Thanks: 15
Thanked 1 Time in 1 Post
crmpicco has a little shameless behaviour in the past
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
crmpicco is offline   Reply With Quote
Old 04-27-2006, 04:53 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
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!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 04-27-2006, 05:59 PM   PM User | #3
drhowarddrfine
Senior Coder

 
Join Date: Oct 2005
Posts: 1,340
Thanks: 0
Thanked 61 Times in 60 Posts
drhowarddrfine can only hope to improve
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.
drhowarddrfine is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:45 AM.


Advertisement
Log in to turn off these ads.