Hi guys, I saved the following code into a .htm file using notepad (very simple )
-------------------------------------------------
<html>
<head>
<style>
div.box {width: 300px; height: 200px; padding: 30px;
font: 46pt times new roman;}
</style>
</head>
<body>
<div class=”box” style=” filter:
progid:DXImageTransform.Microsoft.Alpha
(Opacity=100,
FinishOpacity=0, Style=1, StartX=0, FinishX=0, StartY=0,
FinishY=100)”>
Hey...you can modify opacity.</div>
</body>
</html>
----------------------------------------------------------
Which should display a fading text image, but when I double click to open in browser I just see the text, no styles or effects have been added. I also get the 'to help security IE has restricted webpage from running' message. when i click 'allow content' nothing changes' Im thinking its my IE settings, as to why I cant view the CSS but I done know - any advice !!!
Browser security
Started by kc104, Aug 21 2007 05:40 PM
2 replies to this topic
#1
Posted 21 August 2007 - 05:40 PM
#2
Posted 21 August 2007 - 07:17 PM
IE:
Firefox (and others):
0.6 is the same as 60, so if you put 40, it would be 0.4
filter: alpha(opacity=60)
Firefox (and others):
opacity: 0.6
0.6 is the same as 60, so if you put 40, it would be 0.4
#3
Posted 22 August 2007 - 05:34 AM
Im trying to learn css and these are the examples the book is giving me, but every time i try and run them, it doesnt seem to work, i just get the text, no effects, thats why i think its a browser thing, im copy and pasteing right from the book so it should work, and i dont know why its not, can anyone help me
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
