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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layers off when previewed in netscape

Status
Not open for further replies.

flasher

Technical User
Mar 4, 2002
245
US
On the following page, I have a "Join our mailing list" graphic and on top of it I have a layer with the text field and submit button on it. created in dreamweaver. When previewed in Internet Explorer, it's fine. In netscape, the text field layer appears above the graphic instead of on top of it. How can modify it so that it works in both IE and netscape? (I already hid all invisible elements so it won't throw everything off..) Thanx.

 
Why not make the image the background of your layer instead?

Make sure your background image and layer are the same size.

Positioning layers in netcrap is messed up and I don't even bother trying anymore.

Why are you even using the layer? Won't it all work in atable cell? I looked for some hide layer fucntion you might be using but didn't find one?
 
and check your site at 600 x 400 and 1024 res.

Does not look right.

 
You are right Mr. Flasher,
I have just checked your page in IE, its working fine but it wont show the same effect in NEtscape. Becoz Netscape 4 does not support the position:absolute property of Style sheet. All you need to do is to check for browser using Javascript code and if browser is netscape, then use layers instead of DIV TAG.
Alternatively, you can specify a table with table background as your desired image, and in next cell you can always insert the INPUT box and button, which will give you same look and feel.
Its my advise, that, if you want to make your page, browser compatible, then dont rely much on layers.
*** Cheers
 
Hi Flasher,
I've discovered that it's safest to design using layers, then convert the layers to table as the very last step - that seems to sort out all my layout problems and the page looks much the same in old versions of Netscape and IE as well as the latest versions. That's my advice - from a very non-expert.
[dazed]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top