D
Dirglemore
Hello all,
I appologize in advance; I'm not a javascript expert by any stretch.
If a particular image on my page doesn't fit within the browser
window, I shrink it:
ratio = document.images.height/document.images.width;
document.images.width = viewWidth;
document.images.height = ratio*document.images.width;
Using Internet Explorer, the table that contains this image is also
then resized (to the new image size) and the text within the table is
wrapped accordingly. Under Firefox, however, the table dimensions
aren't re-evaluated and the table's text continues to extend beyond
the limits of the browser window (you have to use the horizontal
scrollbar to read the text, which I was trying to avoid).
Does anybody know how I can force Firefox to re-evaluate the table
dimensions after I change this images' dimensions?
Thx in advance!
I appologize in advance; I'm not a javascript expert by any stretch.
If a particular image on my page doesn't fit within the browser
window, I shrink it:
ratio = document.images.height/document.images.width;
document.images.width = viewWidth;
document.images.height = ratio*document.images.width;
Using Internet Explorer, the table that contains this image is also
then resized (to the new image size) and the text within the table is
wrapped accordingly. Under Firefox, however, the table dimensions
aren't re-evaluated and the table's text continues to extend beyond
the limits of the browser window (you have to use the horizontal
scrollbar to read the text, which I was trying to avoid).
Does anybody know how I can force Firefox to re-evaluate the table
dimensions after I change this images' dimensions?
Thx in advance!