Transparent DIV SPAN for all browsers
Posted: October, 02 2008How to create a transparent DIV / SPAN to work in all browsers including Internet Explorer and Firefox. Internet Explorer uses filter and firefox uses moz-opacity; here’s the CSS and HTML code to use.
CSS Code
.transparent { filter:alpha(opacity=60); -moz-opacity: 0.6; opacity: 0.6; }
HTML Code
<div class="transparent">A transparent div.
</div>
There you have it a nice shiny semi-opaque, transparent div.
Related Articles
- 24.05.09: How to view website on a shared IP (0)
- 12.10.09: Remove Latest Messages from Magento admin (0)
- 12.08.09: Magento Error: Please check for sufficient write file permissions [fixed] (0)
- 11.06.09: Changing default / index page via htaccess (0)
- 10.10.09: How to clear dashboard stats in magento (0)







Comments RSS Feed




Leave a comment