{"id":5473,"date":"2010-06-06T19:50:00","date_gmt":"2010-06-07T02:50:00","guid":{"rendered":"http:\/\/css-tricks.com\/?p=5473"},"modified":"2010-06-07T04:21:57","modified_gmt":"2010-06-07T11:21:57","slug":"transparency-in-web-design","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/transparency-in-web-design\/","title":{"rendered":"Transparency in Web Design"},"content":{"rendered":"
How is it done? Let’s take a gander at four different ways. Each of them handling the illusion in a different way, and each completely appropriate depending on the situation at hand.<\/p>\n
<\/p>\n
The end result of any web design is basically an illusion anyway. You can always create your transparent effects in Photoshop or whatever other graphics editor and export flat graphics. In Photoshop, transparent effects can be created by changing a layers opacity level, fill level, or blending mode, just to name a few.<\/p>\n
You can make any element transparent by using the opacity<\/tt> parameter of CSS. <\/p>\n If you need to support older browsers, see here<\/a>. <\/p>\n Do note that all descendants of the element with opacity also become transparent. There is no way to “force” any descendant to be come any less transparent as the parent is. <\/p>\n#anything {\r\n opacity: 0.5; \/* 50% transparent *\/\r\n}<\/code><\/pre>\n
RGBa \/ HSLa<\/h3>\n