Jump to content

[SOLVED] Simple Disappearing text Bug in IE 7


zatoichi

Recommended Posts

I have a stripped down my working page to this very simple example of my problem.

This example works fine in Firefox, but not in IE 7.

When you mouseover the mouseover link some of the text disappears.

The problem seems to be structural. 

Changing page structure fixes the problem, but breaks the effect that I am trying to use.

Deleting the width parameter from either the table or the div also fixes the page.  ?????

All I want to do is dynamically change the style in the test area without anything else on the page changing.

 

Here it is....

 

div { position:relative; border:solid 1px red; }

div#main { width:500px; border:solid 1px green; }

table { border:solid 1px orange; }

tr,th,td { padding:2px; border:solid 1px #00ffff; }

.testStyle { background-color:#dddddd; }

 

<div id="main">

<DIV>

  <TABLE width="50%"><TBODY>

  <TR><TD>TEST 1</TD><TD><DIV>TEST 2</DIV></TD><TD><DIV>TEST 3</DIV></TD></TR>

  </TBODY></TABLE>

</DIV>

 

<TABLE><TBODY>

  <TR><TD>

    <SPAN><A onmouseover="document.getElementById('popupTest').className = 'testStyle';" href="#">MOUSEOVER</A></SPAN>

    <DIV id=popupTest>TEST AREA 2</DIV>

  </TD></TR>

</TBODY></TABLE>

</div>

 

Link to comment
Share on other sites

Fixed this by changing the structure to one that has fewer nested divs.  Nothing else seemed to work.

 

<div id="main">
  <TABLE width="50%"><TBODY>
   <TR><TD>TEST 1</TD><TD><DIV>TEST 2</DIV></TD><TD><DIV>TEST 3</DIV></TD></TR>
  </TBODY></TABLE>

<TABLE><TBODY>
  <TR><TD>
    <SPAN><A onmouseover="document.getElementById('popupTest').className = 'testStyle';" href="#">MOUSEOVER[/url]</SPAN>
    <DIV id=popupTest>TEST AREA 2</DIV>
  </TD></TR>
</TBODY></TABLE>
</div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.