Results 1 to 1 of 1
Oct 10, 2003, 11:19 #1
- Join Date
- Feb 2003
- Mexico City
- 0 Post(s)
- 0 Thread(s)
Resizing a div after IE changes the page's font size
I have a page layout with several fixed size divs and a free flowing one. Problem is, if I change the font size in IE, the text overflows over the fixed size divs... I've been searching for a method to detect this behavior and resize the fixed size divs to match the new font size.
Another solution would be to make the free flowing div to show a scrollbar, but that wouldn't be very accesible, which is why I'm allowing the user to resize the fonts in the first place...
Any help is appreciated.
- Ivan V.
PS: Ok... I was going to post this question when the answer popped in my mind... So here's how to do it in case someone else has this problem
document.getElementById("TheFreakingDiv").onresize = function_to_adjust_other_divs;
Pretty simple, huh?