I have been using the following script in a stylesheet:
This code was put in the html+a link to the stylesheet:HTML Code:<style type="text/css"> /*Credits: Dynamic Drive CSS Library */ /*URL: http://www.dynamicdrive.com/style/ */ .toggleopacity img{ filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); -moz-opacity: 0.5; } .toggleopacity:hover img{ filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100); -moz-opacity: 1; } .toggleopacity img{ border: 1px solid #ccc; } .toggleborder:hover img{ border: 1px solid navy; } .toggleborder:hover{ color: red; /* Dummy definition to overcome IE bug */ } </style>
The only problem is:http://www.mhwloeffenedu.cursistennet.nl/home.htm (css works perfectly)except the image moves a little bit. Obviously I don't want this to happen. Is there a way I can prevent this problem from occuring?HTML Code:<a class="toggleborder" href="http://www.dynamicdrive.com/style/"> <img border="0" src="media/button2.gif" width="163" height="57" /> </a>
Thx in advance!
ps sorry for the smilies, i saw later that they also could be disabled!



Reply With Quote


Bookmarks