Home
» Other Stuff » Make a div semi-transparent
Make a div semi-transparent
| April 18, 2009 | Posted by The Futtock under Other Stuff |
This does not work in all browsers but seems fine in the latest ie and firefox. Just add the following to the style of the div:
filter: alpha(opacity=50);
-moz-opacity: .50;
It takes two lines of code. One for ei and the other for firefox. The numbers is how see-through you want it. The higher the number the more solid the colour.
Remember that the div also needs a backgroud colour.
Recent Comments