div tag display attribute does not work in netscape

liunx

Guest
Hello All

I am using div tag display attribute to hide and display a certain part of the html and it doesnot work in netscape. Is there a way around this?

<div id="customer_dropdown_placeholder" style="display:block">
</div>

zorroThere's an easy one. :) Netscape 6+ will recognize that fine, but I'm assuming you're using version 4.x. Netscape 4 and Netscape 6+ are very different beasts. NS4 is crappy and very non-standards compliant. Placing a semi-colon after your display style will get NS4 to recognize it.

<div id="customer_dropdown_placeholder" style="display:block;"></div>

The only thing is, DIV tags are block display by default. So what's the point of this :confused:Also styling a div as display:block is repetively redundant.Thank you guys for the response. The reason I am using <div style="display:block;"></div> is because I can use javascript to turn on and off a certain part of the html depends on what the user select.

by the way Toicontien, hope you dont mind me asking you this but are you Vietnamese. Your nick sounds like one.

zorrodiv is by default a block element, so as ray326 wrote, you code is redundant.Oh I didnt know div is by default display:block. Thanks guys.Originally posted by zorrox02
by the way Toicontien, hope you dont mind me asking you this but are you Vietnamese. Your nick sounds like one.
:D That's awsome! I can't believe someone actually recognized it, but to answer your question, no. I'm not Vietnamese. My cousin works with a Vietnamese at Herman Miller in Michigan, and this guy said the three Vietnamese words for "I need money" are "Toi con tien." I probably have them wrong, since I just heard that from my cousin, who heard that from his friend.

That still floors me that you recognized it :cool:
 
Back
Top