ted_chou12 Posted December 17, 2006 Share Posted December 17, 2006 To be honest, actually, i dont know where this belongs to exactly, if i posted this in the wrong place, please correct me.What i want to do is to optimize the view size of the browser, however, through the coding of the page, I believe there is a way to do that, because some page's text looks bigger than other pages, however, their html code size fonts are the same. (ie. <font size=4> something like this).Yeah, if you dont understand please reply to this. Quote Link to comment https://forums.phpfreaks.com/topic/30990-change-the-viewed-text-size-of-the-browser-through-the-coding-of-the-page/ Share on other sites More sharing options...
fenway Posted December 18, 2006 Share Posted December 18, 2006 To do it dynamically will be quite difficult... though you can give users the typical +/- interface that many sites have. Quote Link to comment https://forums.phpfreaks.com/topic/30990-change-the-viewed-text-size-of-the-browser-through-the-coding-of-the-page/#findComment-143315 Share on other sites More sharing options...
ted_chou12 Posted December 18, 2006 Author Share Posted December 18, 2006 what does it mean by doing dynamatically? because I imported a script that ready-made, and its font size seems to be bigger than my other pages, so I want to change it in order to make them all look the same, but the script is quite long and if I know what function does that, it might be easier for me to find it.Thanks, Ted. Quote Link to comment https://forums.phpfreaks.com/topic/30990-change-the-viewed-text-size-of-the-browser-through-the-coding-of-the-page/#findComment-143439 Share on other sites More sharing options...
fenway Posted December 18, 2006 Share Posted December 18, 2006 Oh, then I misunderstood... maybe it's been classed out, maybe it's been hard-coded in your ready-made script. Quote Link to comment https://forums.phpfreaks.com/topic/30990-change-the-viewed-text-size-of-the-browser-through-the-coding-of-the-page/#findComment-143981 Share on other sites More sharing options...
ted_chou12 Posted December 19, 2006 Author Share Posted December 19, 2006 My ready-made script uses lots of css, but when I deleted all of those css codes, the text size still looks the same, nvm, thanks for your interest in my problem. Quote Link to comment https://forums.phpfreaks.com/topic/30990-change-the-viewed-text-size-of-the-browser-through-the-coding-of-the-page/#findComment-144292 Share on other sites More sharing options...
ToonMariner Posted December 19, 2006 Share Posted December 19, 2006 try using % as your font sizes in your css.Or use js to detect window size and switch style sheets accordingly.I personally use just one style sheet with three body selectors of a different class but same id. give them all different font-size attributes in ems or % then switch the class name based on result of screen size check. Quote Link to comment https://forums.phpfreaks.com/topic/30990-change-the-viewed-text-size-of-the-browser-through-the-coding-of-the-page/#findComment-144397 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.