zeidhaddadin Posted September 11, 2007 Share Posted September 11, 2007 Hi all, how can I make my xhtml valid pages to be compatible with INTERNET EXPLORER Font size .. like Google for example when you choose "Large" you see all texts as large and like this.Thanks,zeid Link to comment Share on other sites More sharing options...
justsomeguy Posted September 11, 2007 Share Posted September 11, 2007 The easiest way is just to switch the stylesheet, like CNN does.<div id="cnnSCFontMinusBtn" onclick="setActiveStyleSheet('default'); return false;"><div id="cnnSCFontPlusBtn" onclick="setActiveStyleSheet('LargeFont'); return false;">They have a Javascript function that changes the stylesheet to whichever one they want to use. Link to comment Share on other sites More sharing options...
zeidhaddadin Posted September 12, 2007 Author Share Posted September 12, 2007 thanks but is there a harder way?! Link to comment Share on other sites More sharing options...
Synook Posted September 12, 2007 Share Posted September 12, 2007 Why would you want a harder way? Link to comment Share on other sites More sharing options...
jlhaslip Posted September 12, 2007 Share Posted September 12, 2007 He enjoys the challenge??? Link to comment Share on other sites More sharing options...
justsomeguy Posted September 12, 2007 Share Posted September 12, 2007 thanks but is there a harder way?!Uhhh.. yeah, I guess you could loop through every element in the DOM and check the style.fontSize property of every single element and change it by a certain percent if it's defined and non-zero. That would be harder. Or you could try to access each class in the CSS sheet and dynamically change the font size property. I don't know how you would do that, so that must be really hard! Or maybe you could write an ActiveX object to do the same thing, that would be both hard and completely pointless. You could also try typing the code with only one hand, that would be sort of hard. Or program on a laptop while you're trying to keep your balance on top of a bus that is speeding down an icy street. I would imagine that would be fairly difficult. You could also write a program using only assembly to access the CSS information that is being stored in RAM on the client's machine, and then develop a browser plugin so that the browsers could run your assembly code.Whatever fits your style. Link to comment Share on other sites More sharing options...
jlhaslip Posted September 13, 2007 Share Posted September 13, 2007 Bored today? Link to comment Share on other sites More sharing options...
zeidhaddadin Posted September 13, 2007 Author Share Posted September 13, 2007 I want to do it naturaly from my css or html .. like mojeek.com or twingine.com they don't have scripts on their main page! Link to comment Share on other sites More sharing options...
justsomeguy Posted September 13, 2007 Share Posted September 13, 2007 I want to do it naturaly from my css or html .. like mojeek.com or twingine.com they don't have scripts on their main page!Well you also can't change the font size on those pages. It's just a search box. I'm not sure what you're asking, but anywhere you see this happening, you can look at the code and figure out how they're doing it, just look for whatever you click on to change the font size and see what it does. Link to comment Share on other sites More sharing options...
zeidhaddadin Posted September 13, 2007 Author Share Posted September 13, 2007 There is nothing to click on .. I'm talking about the Internet explorer function "size" that changes the font size for texts on pages (Not all sites) Link to comment Share on other sites More sharing options...
zeidhaddadin Posted September 13, 2007 Author Share Posted September 13, 2007 Nevermind a solution for that was to use the p size in percent % like p {font-size: 70%;} .. This will make it compatible with IE size function. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 13, 2007 Share Posted September 13, 2007 Oh. I thought you were talking about a link on the page to change the font size. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.