Transparent Elements using CSS

This section contains css codes and other related material.

Transparent Elements using CSS

Postby Shahzad Butt on August 29th, 2008, 3:59 am

If you want to change the transparency of any element in your webpage, then you can do this using css. The following is a cross-browser css code to change the transparency of an element. It is done by changing the opacity property of any element.

Following is the code to make the element transparent.

Code: Select all
#element
{
  opacity: 0.5;
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  filter: alpha(opacity=50);
}
Regards
Shahzad Butt
http://www.GeoSourceCode.com
Shahzad Butt
 
Posts: 23
Joined: July 9th, 2008, 11:16 am
Location: Pakistan

Return to CSS - Cascading Style Sheet

Who is online

Users browsing this forum: No registered users and 0 guests

cron