1) First, since we know the div tag and horizontal scroll bar works fine in Firefox, let's start by testing that in Firefox. Let's suppose you would like your div tag's width to be 585 px long and that you have some line of code that is 900px long. Here is what the div tags would look like:
<div style="background: white; overflow: auto; width: 585px; ">
Place your long content here....
</div>
Change the width of your current div tag to be 1000px long (or enough to cover the length of your long content) and get rid of the overflow auto:
<div style="background: white; width: 1000px; ">
Place your long content here....
</div>
Then, place the div tag inside another div tag. Add the overflow auto attribute to the outer div tag. Also set the outer div tag's widht to be your desired width (585 px):
<div style="background: white; overflow: auto; width: 585px; ">
<div style="background: white; width: 1000px; ">
Place your long content here....
</div>
</div>
Give it a test. Your horizontal scroll bar should now work on both Firefox and Internet Explorer.
No comments:
Post a Comment