layer opacity

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

layer opacity

Post by potato »

Hi everybody,

somebody knows how you make a layer with opacity, so that you see the picture behind it a little bit.
Example: http://www.sonydce.com
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

setting opacity requires absolute position, and a few specific settings for IE and Mozilla, Safari or something is supposed to support it too.. of course each of them supports it through their own naming and crap.. weee.
Guilherme Blanco
Forum Newbie
Posts: 12
Joined: Wed Jun 02, 2004 4:58 pm
Location: São Carlos - SP/Brazil
Contact:

Post by Guilherme Blanco »

Set the DIV absolutely or relatively positioned and add the alpha code.

filter: alpha(opacity=XX); -moz-opacity: 0.XX;


Regards,
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

feyd wrote:setting opacity requires absolute position, and a few specific settings for IE and Mozilla, Safari or something is supposed to support it too.. of course each of them supports it through their own naming and crap.. weee.
i agree with this, getting it to work in mozilla and IE is opssible but a real pain (with slight discripencies) however it can be done.

Also just thought id add, Opera doesnt support this
Post Reply