Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 27th, 2006, 10:39 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default 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

www.crmpicco.co.uk
www.ie7.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old April 27th, 2006, 11:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

The answer is in your question. It's a proprietary extension and not in the spec.

I guess you can put it in an IE specific JavaScript instead (I don't know how) but why bother?

--
http://yupapa.com
 
Old May 8th, 2006, 08:09 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

Thanks Meow,

In the same piece of CSS, i get this error when validating. 'dhtmltooltip' is an id of a div, why wont it take the '#'?
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);
}
Line: 184 Context : #dhtmltooltip

attempt to find a semi-colon before the property name. add it

www.crmpicco.co.uk
www.ie7.com
 
Old May 8th, 2006, 08:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It doesn't say something is wrong with the selector. It says that's the CONTEXT where something is wrong. You still have the MS stuff in there. It will never validate with that, so you can give up trying.

I think you get the error you quote because of the double colon syntax the MS filter uses. A colon normally is after a property name followed by its value. So the validator expects a semicolon delimiter somewhere in-between the colons.

--
http://yupapa.com
 
Old May 9th, 2006, 05:11 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

thanks meow, thats exactly what it was. i have taken it out seen as though it wont validate. stylesheet now fully validates!

www.crmpicco.co.uk
www.ie7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for alpha in a string abbylee26 Javascript How-To 2 April 12th, 2011 06:44 PM
How to know data is numric or alpha numric dishant XSLT 1 September 26th, 2008 01:56 AM
c:out doesnt work tllcll JSP Basics 1 November 1st, 2007 03:15 AM
WHY DOESNT THIS WORK vb certified Pro VB.NET 2002/2003 5 August 1st, 2005 11:08 PM
[Microsoft][ODBC Microsoft Access Driver] Syntax e chinedu Classic ASP Databases 3 November 18th, 2004 03:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.