Jayhawk
04-07-2006, 07:13 PM
I have the following display:
<div class='black t10 lt' style='width:390px; height:235px; background:#f2f2f2; padding:10px; margin-left:10px; border:1px solid #000000; text-align:left; float:left; overflow:auto'>
text here with specified word highlited
</div>
The problem arises when the text is too long for the container and the highlighted word is in the portion of the text that is below the bottom edge -- the viewer needs to scroll down for the highlighted word to be visible. How can I cause the text to be displayed so that it is already scrolled down and the highlighted word is in the visible portion of the text?
Note that taking it to the end might not work, since that might be overkill and result in the highlighted word being above the visible portion of the text.
<div class='black t10 lt' style='width:390px; height:235px; background:#f2f2f2; padding:10px; margin-left:10px; border:1px solid #000000; text-align:left; float:left; overflow:auto'>
text here with specified word highlited
</div>
The problem arises when the text is too long for the container and the highlighted word is in the portion of the text that is below the bottom edge -- the viewer needs to scroll down for the highlighted word to be visible. How can I cause the text to be displayed so that it is already scrolled down and the highlighted word is in the visible portion of the text?
Note that taking it to the end might not work, since that might be overkill and result in the highlighted word being above the visible portion of the text.