Click to See Complete Forum and Search --> : Text Size Detector
96turnerri
11-07-2003, 06:05 AM
i would like to know is it possible to detect the browsers text size or text zoom on MSIE or NN, could some1 plz tell me how to do this
i would like a document.write function in the to display the current setting thanks
Rich
p.s. this is just a temporary solution for now but will use it again, just configuring my css to % and that
Khalid Ali
11-07-2003, 06:19 AM
Unless you explicitly define font size in CSS files for a page,I am prettty sure you can not access it.
96turnerri
11-07-2003, 06:44 AM
yeah but how can you define a text size in CSS i have done that but the browsers just change the zoom, this causes conflicts with the <divs> can i stop a browser changing the font zoom?
Khalid Ali
11-07-2003, 09:51 AM
browsers typically will display whatever CSS you have set for the layout and font,howeve, if a user disables CSS then your CSS will not work.
If user has not disabled CSS and browser does not apply your CSS that means you have wrong CSS set..
96turnerri
11-07-2003, 09:55 AM
yeah but i have css on my site (obviously) and i have css enable, when viewing a page it looks fine, but change the text size in the view menu and my <divs> start to conflict
Khalid Ali right. You need to design your pages so that font-size changes do not affect the layout.
W3C font recommendations (http://www.w3.org/2003/07/30-font-size)
96turnerri
11-07-2003, 12:10 PM
thanks evry1 let you know how i get on 2moro