kvarnerexpress 0 Report post Posted October 16, 2005 Is there a way to make the text on a page stay the same size, even if the user clicks on the 'Enlarge text size' button or the 'Decrease text size' button within browsers.I know you can use an image, but that makes the site too big.I also am aware of the need to give the user control, but for particular reasons a particular section of text on the site needs to stay the same size. It doesn't matter if the text around it is enlarged or decreased. It is just a particular section. Any suggestions appreciated.Also, as an aside, is there a way you can completely disable the function, just like you can disable the right mouse click, etc.Thanks.kvarnerexpress Share this post Link to post Share on other sites
amhso 0 Report post Posted October 16, 2005 well that would get rid of the purpose of the text size feature. Some people have bad eyes...What reason do you mean for doing this? Share this post Link to post Share on other sites
Lozbo 0 Report post Posted October 16, 2005 I used to declare pixels or points in CSS for the font size, and it never resized, but im not sure exactly when, browsers started resizing, even when in css you did not have measure in EM or other relative sizes.Anyway, its been also a time since i quit doing that, so you might try this and see if it works... (using pixels or points for the font size, instead of relative measure) But you have to declare this in the most specific rule that applies to your text. Share this post Link to post Share on other sites
arboc7 0 Report post Posted October 16, 2005 As far as I know, the only fool-proof way to keep your text a static size is to use an image. Browsers these days even allow the user to change the size of text that is defined to have a certain pixel size...Sorry that I can't help much...Good luck! Share this post Link to post Share on other sites
Tyssen 0 Report post Posted October 17, 2005 It's only IE that doesn't allow text size resizing if you use pixels. If it absolutely has to be a certain size (even though I can't think of any situation where that would have to be the case), then images is your only option. Share this post Link to post Share on other sites
rvalkass 5 Report post Posted October 17, 2005 Even images won't help entirely, Opera has a zoom feature to enlarge everything on a page. If the text must be that small for layout then thats fine, the zoom won't affect it, but otherwise, you will still have problems. Share this post Link to post Share on other sites
Tyssen 0 Report post Posted October 17, 2005 Even images won't help entirely, Opera has a zoom feature to enlarge everything on a page. If the text must be that small for layout then thats fine, the zoom won't affect it, but otherwise, you will still have problems.Yeah but Opera scales the whole page as one. The reason given for needing to restrict a certain portion of the layout was cos it breaks something else. If an image was used, Opera would scale it relative to everything else and so would maintain the page's overall layout. Share this post Link to post Share on other sites