RobB wrote:[color=blue]
> mscir wrote:
>[color=green]
>>I'd like to detect when the user resizes the text in the browser, is
>>there a specific event I can watch for?[/color]
>
>
> Relevant thread:
>
> http://groups.yahoo.com/group/wdf-dom/message/3816
>[/color]
A 2 year old message suggesting an IE 5-only function (a
whopping 4.3% of surfers[1]) and an entirely unreliable
suggestion to use getComputedStyl e() on a window Resize event...
Zifud wrote:[color=blue]
> RobB wrote:[color=green]
> > mscir wrote:
> >[color=darkred]
> >>I'd like to detect when the user resizes the text in the browser,[/color][/color][/color]
is[color=blue][color=green][color=darkred]
> >>there a specific event I can watch for?[/color]
> >
> >
> > Relevant thread:
> >
> > http://groups.yahoo.com/group/wdf-dom/message/3816
> >[/color]
>
> A 2 year old message suggesting an IE 5-only function (a
> whopping 4.3% of surfers[1]) and an entirely unreliable
> suggestion to use getComputedStyl e() on a window Resize event...[/color]
What's the statute of limitations on those...2 weeks?
IE 5+ includes IE 5.5, IE 6...slightly higher percentage.
I didn't endorse everything in that thread, just ran across it recently
on a search for something else, and thought the OP might be interested.
[color=blue]
> Do you get a spotters fee over at Yahoo! Groups?[/color]
Uh-uh. Does your issuing a one-word unconditional reply to a post here
close the thread?
mscir wrote:
[color=blue][color=green][color=darkred]
>>>I'd like to detect when the user resizes the text in the browser, is
>>>there a specific event I can watch for?[/color][/color][/color]
[color=blue]
> Interesting approach, didn't let me resize the page though.[/color]
That's what you want to do? (It always helps to describe the problem as well
as the barrier that is preventing you from implementing the solution you
have come up with).
Just define your lengths in units relative to the font size in the first
place:
div#navigation {
width: 35em;
}
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
David Dorward wrote:[color=blue]
> mscir wrote:
>[color=green][color=darkred]
>>>>I'd like to detect when the user resizes the text in the browser, is
>>>>there a specific event I can watch for?[/color][/color]
>[color=green]
>>Interesting approach, didn't let me resize the page though.[/color]
>
> That's what you want to do? (It always helps to describe the problem as well
> as the barrier that is preventing you from implementing the solution you
> have come up with).
>
> Just define your lengths in units relative to the font size in the first
> place:
>
> div#navigation {
> width: 35em;
> }[/color]
Sorry I wasn't clearer in my original post. I'd like a cross-browser
approach that lets me see when the browser text is resized, e.g. when
the Netscape 7.2 menu choice: 'View > Text Zoom' setting is changed,
or when the IE 6 menu choice: 'View > Text Size' setting is changed.
Barrier to solving: I haven't sen any kind of event trapping that will
work (I plead ignorance).
mscir wrote:
[color=blue][color=green]
>> Just define your lengths in units relative to the font size in the first
>> place:[/color][/color]
[color=blue][color=green]
>> div#navigation {
>> width: 35em;
>> }[/color][/color]
[color=blue]
> Barrier to solving: I haven't sen any kind of event trapping that will
> work (I plead ignorance).[/color]
You don't need to trap the event. If you define your lengths using units
relative to the font size, then they will change size when the font size
changes.
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Comment