need your help please. Facing this issue first time and need your expertise.
The code is
<div style="overflow:hidden;cursor:pointer;width:100%">
<div id="ScrBar" style="position:relative;width:16000px">
This is the text alksdjflask d;alskdj fl;aksjd f;laksdjf l;kasjdf ... -----> long line
</div>
</div>
This is IE7-related! Can not test on other versions of IE. In Chrome and FF works ok.
if I do not put DOCTYPE at the beginning of the html file, the first DIV ends at the right end of the screen, and inner DIV is "cut" at this point. No horizontal scroll bar.
If I put DOCTYPE (no matter transitional or strict), then outer DIV gets full width of the inner DIV. Window has long long horizontal scroll bar.
Well, I can not understand what is the problem (in terms of technical terms rather than what I see on the screen) before even going to research how to fix it.
Thank you!
Edit: further testing showed that with IE8 and local copy of the file it displays as expected, but with IE8 and file uploaded to the server (apache) it does not display as expected with long horizontal scroll bar!