Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cell movement when scroll bars appear

Status
Not open for further replies.

snowboardr

Programmer
Joined
Feb 22, 2002
Messages
1,401
Location
PH
In firefox, some cells move around when I have a javascript open a cell using

document.getElementById('thecellid').style.display="";

Its because the scrollbars appear, however in IE the cells don't move. I know that you must put your cells to PT instead of % but I can't do that in this situation, because my table takes up 100% screen width

Jason
 
You might be able to use the overflow property to prevent the scrollbars from appearing depending on how your table is setup. I assume the cell you speak of contains a span or div, that would be where the scrollbar is appearing, as part of that span/div container and push the height/width of the cell by the number of pixels the scrollbars use which varies browser to browser. If you can set the overflow property to none for that container it will not let the scrollbars appear.


At my age I still learn something new every day, but I forget two others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top