Forum Moderators: not2easy
div {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
}
div span {
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00ffffff, endColorstr=#ffffffff)";
}
div {
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#00ffffff, endColorstr=#ffffffff)
progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
it looks like you've got an extra 'ff' in your 'startColorstr' and 'endColorstr' values here.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title> Page Title </title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="/" type="text/css" media="screen" charset="utf-8">
<style type="text/css" media="screen">
html, body {
margin: 0; padding: 0;
background: #222;
}
body {
font-family: verdana, tahoma, sans-serif;
font-size: 14px;
}
#wrap {
width: 500px;
margin: 0 auto;
padding: 20px 0;
color: #fffff0;
xposition: relative;
}
.ie {
font-size: 25px;
line-height: 50px;
text-align: center;
zoom: 1;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#00111111, endColorstr=#ffccffcc)
/* progid:DXImageTransform.Microsoft.BasicImage(rotation=3) */
;
}
.ie div {
zoom: 1;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#00111111, endColorstr=#ffccffcc);
color: #222;
}
</style>
</head>
<body>
<div id="wrap">
<div class="ie">Text in div <div>text in nested div</div></div>
</div>
</body>
</html>
yes IE7 and below always need hasLayout set when any filter is used,Ah .. well there goes a few months of blissful ignorance ;)
as it is above, it works quite nicely, but uncomment that second filter in the div.ie {} rule and it all goes wrong.. it rotates but the first color filter stops and the second mucks up the text color & aliasing and IE8 completely loses the plot!I haven't spent enough time with filters to understand their inner workings, but I suspect the colour syntax. I removed the alpha channel, then realised the text colour was defaulting to a darker shade that just happened to look like #222 - unless the page was zoomed, in which case the text switched to the colour on the outer div.
actually want the "text" behind to gradient/fade, rather than be clear. Not sure if I understand exactly, but have you considered the alpha filter rather than gradient?
<style type="text/css">
#oDiv
{
filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=2) progid:DXImageTransform.Microsoft.gradient(startColorstr=#0088ffff, endColorstr=#ff22ffff)'
}
</style>
<div id="oDiv" style="position:absolute; left:270px;">
<span style="color: #f0f">An Image - > <img src="http://www.webmasterworld.com/gfx/logo.png" /></span>
</div>