Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hidding a DIV 2

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
playing with div hiding for the first time, and I have some tables which I want to show in either Verbose or summary mode... no problem, I have my buttons which switch between the two just fine... problem is, when a table is hidden, it still takes up all the white space.

I'm using...

<div id=&quot;blahblah&quot; style=&quot;visibility:hidden&quot;>

Is there a way to do it so the div effectively dissapears?

Thanks!

Rob
 
<div id=&quot;blahblah&quot; style=&quot;display:none&quot;>

Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
...and to show the div again, you need to set the display property to 'block'.

eg. <div id=&quot;blahblah&quot; style=&quot;display:block&quot;>

ss...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top