Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

layers and visibility

Status
Not open for further replies.

boneychil

Technical User
Joined
Mar 12, 2002
Messages
2
Location
US
Hi to all! I'm just getting into the Dreamweaver arena. When I first started working with DW I was under the impression that you could put a picture on top of a picture on top of a picture and be able to see all 3 as one.

Now that I've messed around with DW it looks like layers would be what I would need to use.

My Question is:

Does layers allow you to set transparencies to 2 or 3 or more layers. For example if you placed a yellow layer on top of a blue layer would it make the resulting overlap portion green. I have seen something like this in DW/ Modify/Page Properties.

I hope someone understands my ?
and thanks in advance.

This is a great forum. Seems to be a large member base.
 
Layers do not have transparency attributes such as you are describing. You can have a layer with an image, and on top of that have a layer with text... however JPGs are not capable of having transpareny borders, and transparent GIFs are not transparent per se. I am not sure how one gif over another would act on layers, since I have never attempted it, but I don't think it will have the outcome that you are looking for.

Also, be forewarned that nesting layers like that will act differently on Netscape 4 than on IE. When in doubt, deny all terms and defnitions.
 
Your question deals with 2 topics.

1. Layer positioning.

lets say you have 3 layers each 100 x 100. you can position them at co-rds 10, 10. yes all of them. which layer is then visible? the layer with the highest z-index.

2. Transperency

With CSS you can set the opacity of a layer. But this works only in IE not in netscape, no not even in nescape 6.0+
Transperency of a layer can be set in the CSS panel. Extensions is the tab where you will see a drop down menu for filter. The first selection is for Alpha.
More info is available at
So given the above 2 senarios. If you have 50% opacity for a red , blue and green layer. and all these layers are placed one above another then you should get BLACK as output. I haven't tried it. If you do, please let me know the results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top