Click to See Complete Forum and Search --> : Hiding a Division


MCP
12-30-2003, 01:55 AM
I would like to hide a division on a webpage I'm coding, so that the user isn't aware that it's there. So far I've come up with this, but it's not working. Any help would be great. Thanks!<div id="hiddendiv" visibility:visible; width:0px; height:0px; overflow:hidden;>

Exuro
12-30-2003, 03:01 AM
Try something more like this:
<div id="hiddendiv" style="display:none;">

MCP
12-30-2003, 11:00 AM
Thanks, Exuro, that worked great!

fredmv
01-01-2004, 05:17 PM
I'd recommend defining display: none in the hiddendiv ID, or in a class if plan to use it multiple times.

MCP
01-01-2004, 10:32 PM
What do you mean a 'class' ? Is that like using CSS to redifine tags?

fredmv
01-01-2004, 10:41 PM
http://forums.webdeveloper.com/showthread.php?s=&threadid=21760#post113322