<STYLE></STYLE><font face="arial" size="2"><br />&nbsp;&nbsp;&nbsp;style.visibility merely makes the element visible or invisible.&nbsp; It still takes up the same amount of screen space; this can been seen when you use relatively positioned (inline) elements.<br /><br />&nbsp;&nbsp;&nbsp;style.display actually makes the element stop displaying, i.e. it disappears and there's no trace of its existence.&nbsp; The one problem I've seen with this is that Netscape&nbsp;7 doesn't seem to support the display property.<br /><br />Cheers,<br /><br />Peter<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: "Dash" &lt;forgetful54341087097153001984@hotmail.com&gt;<br /><b>Sent</b>: Wednesday, March 23, 2005 12:46 PM<br /><b>To</b>: javascript@LaTech.edu<br /><b>Subject</b>: [Javascript] div visibility</font><br /><br /> <div><font face="Arial" size="2">I was just reading the&nbsp;"replace element with another element on click" thread, and i saw you were changing the 'display' style of the div, I've always used the CSS 'visibility'of the element to show and hide things. Does anyone know what the difference is and which one (if any) is better to use when showing or hiding a div?</font></div> <div><font face="Arial" size="2"></font>&nbsp;</div> <div><font face="Arial" size="2">thanks,</font></div> <div><font face="Arial" size="2"></font>&nbsp;</div> <div><font face="Arial" size="2">Dash</font></div>