Hi all,
I'm using a div as a pop-up on a page to show some addtional information.
First some code:
<td>
<div class="floatingDiv" id="popup">
some txt here...
</div>
<p style="margin-top: 0px" onMouseOver="ShowContent('popup',0); return true;" onMouseOut="HideContent('popup'); return true;" >
.. short message here
</p>
</td>
.floatingDiv
{
display: none;
position: absolute;
border: 1px solid #000000;
background-color: #FFFFEE;
padding: 10px;
font-size: 8pt;
/*white-space: pre-line;*/
}
So when I hover the short-text, a popup shows and displays: " some txt here...". This works.
However: I have a problem with the wrapping of the text. When viewing this in FF3 it shows correct:
some txt here...
In IE7 however, it shows as:
some
txt
here...
So I surfed around a bit and found white-space: nowrap;
. This fixes the problem with wrapping in IE, but gives new problems when the shown text exceeds the width of the screen. I've also tried other options as line-wrap, pre-wrap and pre. But they all have the same behaviour on IE as default.
Is there another option that I can use?