Hi, I am having trouble with the page http://www.clementsweb.net/control/main.php. I want the small button on the right hand site to minimize the DIV tag to just the title bar, then clicking again, expands it.
Thanks Matt
search google for: - onclick - visibility: hidden, visible - display: none, block U should use display, I think visibility have some problems in IE ...
No, visibility works fine in IE. Display will remove the space the object occupied, visibility just hides it. So if you don't want other elements to collapse into the vacated space, use visbility.
JPnyc wrote:No, visibility works fine in IE. Display will remove the space the object occupied, visibility just hides it. So if you don't want other elements to collapse into the vacated space, use visbility.
Yes, but in firefox, visibility works just like display ....
If it does, it's incorrect.
It doesn't.
<html> <head> <title>Page title</title> <style type="text/css"> <!-- div{margin:0;padding:0;border:1px solid red;} --> </style> </head> <body> <div>Line 1</div> <div>Line 2 follows:</div><div style="visibility:hidden">Line 2 (Visibility:hidden)</div> <div>Line 3 follows:</div><div style="display:none">Line 3 (Display:none)</div> <div>Line 4</div> </body> </html>