-
1. Re: Limit text size change for navbar?
johndonaldson May 22, 2009 5:44 PM (in response to Ron Lanham)Anyone know of a simple way to disallow viewers to change the text size in a specific component in GLCS2 (i.e. the left navbar).
You cannot completely "disallow" text size changes for your users. If you have created CSS rules which control the presentation of the elements of your "component", then you can add the !important declaration to the CSS rules for that element: e.g.:
#leftnav li { font-size: 12px !important; }
It lets the browser know you consider the declaration important, it does not however give your styles dictatorial rights;-) A user can do the same thing, and their styles will win over yours. Neither CSS nor modern browsers (running on PCs, PDAs or mobile phones) give the page author absolute control over presentation 8-)
John
-
2. Re: Limit text size change for navbar?
Ron Lanham May 22, 2009 8:41 PM (in response to johndonaldson)Thanks John.
So when you say "... a user can do the same thing..." I am assuming that you mean the browser's increase/decrease text size button (or menu for Firefox) will rule out.
So what would be the case(s) where the 'important' attribute would actually make a difference?
-
3. Re: Limit text size change for navbar?
Ron Lanham May 22, 2009 8:47 PM (in response to Ron Lanham)John... no need to reply to my last question.
I went to the w3.org site and see that it is a complex issue.
I'm currently reading on it.
Thanks for making me aware of this. Really appreciate it.
Regards,
Ron
-
4. Re: Limit text size change for navbar?
Ron Lanham May 22, 2009 9:13 PM (in response to Ron Lanham)Just to follow up...
I have now included "!important" in the font rule, but both Safari's text increase button and Firefox's menu View > Zoom easily over rides it.
Oh well...

