Forum Moderators: not2easy

Message Too Old, No Replies

Hiding a div

Netscape code for hiding a div

         

Adam5000

2:40 am on Feb 12, 2006 (gmt 0)

10+ Year Member



Hello everyone. Good to see everyone again. After a record setting warm January, winter has returned and Im working on my web site again. Everyone was very helpful last time and thanks and appreciation go to everyone.

The site works great using MSIE but I'm having a little trouble with the Netscape code. Specifically hiding the divs. Some of the divs on the home page start out hidden and then fade in.

The code I'm using with MSIE is

<DIV id=Door style="Z-INDEX: 3; FILTER: alpha(opacity=0); LEFT: 0px; POSITION: absolute; TOP: 0px">

<IMG height=360 src="Picture one.jpg" width=180>

</DIV>

and this works good with MSIE. I'm looking for the Netscape code that will hide a div.

drhowarddrfine

3:16 am on Feb 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



div {visibility: hidden}

This is standard code, too. I thought it worked in IE, too. Your code doesn't work anywhere but IE and is non-standard.

What is Netscape code?

Adam5000

7:50 am on Feb 12, 2006 (gmt 0)

10+ Year Member



I've tried it several different ways and I can't get it to work using the Netscape browser. Would you be more specific about the code? For example the word div has to be inside the brackets. <div>

Clinton Labombard

9:39 am on Feb 12, 2006 (gmt 0)

10+ Year Member



<div style="visibility:hidden;"></div>

or in a style tag:

<style type="text/css">
div { visibility:hidden; }
</style>

Or you could set a class for that particular kind of divider.

<style type="text/css">
.hid { visibility:hidden; }
</style>

<div class="hid"></div>

Adam5000

1:25 am on Feb 13, 2006 (gmt 0)

10+ Year Member



Thank you Clinton. That worked very well. Accolades to you.

shoemilk

2:42 am on Feb 14, 2006 (gmt 0)

10+ Year Member



I don't know if that's the actual code that you're using, and I don't want to sound like a snot, but just an fyi, w3c's require all tags to be lower case and for quotes to be put around all values (ie <div id="Door" ...></div> not <DIV ID=Door ...></DIV>)