Link to home
Start Free TrialLog in
Avatar of andyuk
andyuk

asked on

Netscape and layers

I have been developing a website that incorporates tables and layers.  Everything is fine in Internet Explorer but in netscape some of the layers seem to appear and disappear.  there are approximately 10 layers on the page and three of them the ones containing text seem to go onto the page then hide them selves.

I have tried using the visible option for the layers in question but with no success.

Any suggestions?

Andy
Avatar of DreamMaster
DreamMaster

Could we see your code? Maybe we don't even need to see it though as this sounds like there are some layers overlapping the other layers...

Try setting in the styles of all your layers, minimal widths and heights...

For example:

<div id="somelayer" style="position:absolute; left:100px; top: 150px; width:10px; height:10px;">
<!--
 Contents of your layer
//-->
</div>

Also for Netscape the order in which you place the layers in your page is very important, if you do it correctly...there is no need to place any z-index attributes...or visibility...

If you still can't see the layers, try to give them all a background color so you can actually see if they are overlapping other layers....

Hope this helps...

Cheers,
Max.
Avatar of andyuk

ASKER

Here is a sample of the code all of this is enclosed within a table.

<div id="Layer2" class="stdtextplain" style="position:absolute; left:21px; top:146px; width:395px; height:50px; z-index:55; visibility:visible">Specialist
                    Underwriting Services Limited was formed in 1995 as a result
                    of demands for insurance covers which could not easily be
                    obtained in the Irish insurance market place.</div>
                  <div id="Layer3" style="position:absolute; width:395px; height:65px; z-index:5; left: 22px; top: 218px" class="stdtextplain">As
                    a result of the specialist markets which it had either created
                    or discovered in order to satisfy these needs its role as
                    a specialist wholesaler was determined particularly as it
                    also had the added advantage of being the sole Irish provider
                    of those products.</div>
                  <div id="Layer4" style="position:absolute; width:396px; height:61px; z-index:5; left: 22px; top: 304px" class="stdtextplain">Today
                    the company is a subsidiary of Grandmarc Group, is a member
                    of the IBA, is tribunalised at Lloyds and specialises in niche
                    markets including Personal Accident, Travel, specialist schemes
                    for Accountants and the Irish Food Industry.</div>
This is most likely to be your problem....try placing the layers outside of the table....

Netscape is not too keen about layers inside tables...

One thing I also wonder about is why would you place both a style and a class in a layer? Can't you put all style information inside the class?

When you use position absolute inside a table...the value is taken from the position of the table not the position of the page (this could also be your problem...).

There are many things that could cause a problem like this so it might be good to see the full source so I can check where this goes wrong...

If the source is very big please mail it to me instead (and to anyone else that might want to help you) at david315@wxs.nl

Are the text layers the only ones that are inside the table by the way? If so then you should really check if you see them when you place them outside the table...

You can safely remove the visibility:visible attribute from all your layer styles by the way as the default value for this is visible anyway...

Cheers,
Max.
ASKER CERTIFIED SOLUTION
Avatar of DreamMaster
DreamMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andyuk

ASKER

Much appreciated.

Andy
You're very welcome...hmm...seems from the post I made that you forgot to close a link...

Max.