Solved

hiding tables

Posted on 2001-07-23
2
154 Views
Last Modified: 2010-03-31
I am using a SPAN, which calls a function which sets the span to hidden.  This works well, but I want it leaves a plain empty block in the middle of my page.  I want the rest of the page to reflow into the rest of the page, so there is not white block sitting there.
0
Comment
Question by:Gcoopman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Expert Comment

by:folletxavier
ID: 6311360
Use the style "Display" attribute
/Xavier
0
 

Accepted Solution

by:
folletxavier earned 25 total points
ID: 6311428
Here is some code you can try out:
Just put it in a .htm file and open the file in IE (!<4.0)

<HTML>
<SCRIPT language="JavaScript">
     function ToggleVisible(span)
     {
          if(span.style.display == "")
          {
               span.style.display = "none";
          }
          else
          {
               span.style.display = "";
          }
     }
</SCRIPT>
<BODY>
<SPAN onclick="ToggleVisible(MySpan);">Click here to hide/show.</SPAN>
<BR>
<SPAN id="MySpan" style="DISPLAY:NONE">
<STRONG>Hide/Show</STRONG>
<BR>
</SPAN>

Some text comes here.
<BR>
</BODY>
</HTML>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question