|
|
|
|
![]() ![]() |
Oct 16 2005, 02:12 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 407 Joined: 13-December 04 Member No.: 2,696 |
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 |
|
|
|
Oct 16 2005, 05:25 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 426 Joined: 24-September 05 Member No.: 12,212 |
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?
|
|
|
|
Oct 16 2005, 05:26 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 282 Joined: 1-September 05 From: Wanatos Member No.: 11,382 |
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. |
|
|
|
Oct 16 2005, 05:55 PM
Post
#4
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 123 Joined: 5-September 05 Member No.: 11,522 |
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! |
|
|
|
Oct 17 2005, 02:01 AM
Post
#5
|
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,161 Joined: 9-May 05 From: Brisbane, QLD Member No.: 6,818 |
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.
|
|
|
|
Oct 17 2005, 05:16 AM
Post
#6
|
|
|
apt-get moo ![]() Group: [MODERATOR] Posts: 2,053 Joined: 28-May 05 From: Hertfordshire, England Member No.: 7,593 ![]() |
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.
|
|
|
|
Oct 17 2005, 05:29 AM
Post
#7
|
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,161 Joined: 9-May 05 From: Brisbane, QLD Member No.: 6,818 |
QUOTE(rvalkass @ Oct 17 2005, 03:16 PM) 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. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 25th July 2008 - 09:52 AM |