- This topic is empty.
-
AuthorPosts
-
March 30, 2011 at 4:37 pm #32187
zackw
MemberHey guys, so I’m doing a website for a client that’s affiliated with the government so I need to pay special attention to W3C Accessibility Guidelines, one thing that the client has asked is for is a button on the webpage that will mimic pressing ctrl + in a browser to increase font size. Is this possible?
March 30, 2011 at 5:22 pm #52980TheDoc
MemberText resizers are everywhere. Check out the results:
http://www.google.ca/search?sourceid=chrome&ie=UTF-8&q=jquery+text+resizer
March 30, 2011 at 9:12 pm #52957Chris Coyier
KeymasterWhat I’d probably do is use JavaScript, and class names on the html element. large-text-size, medium-text-size, etc. Then use those class names to set font sizes where you need to, as well as adjust whatever else you need to. Using class names at that hight of an element gives you lots of control.
March 30, 2011 at 9:43 pm #52952Historical Forums User
Participant@zackw – If you roll with the implementation that @chriscoyier suggested, you may also want to consider addressing other visual impairments, like color blindness, which can effect the perception of contrast.
Veerle Pieters has implemented a ‘high contrast’ mode button on her site’s articles which switches to a high-contrast stylesheet. It changes the background to white, most text to black, and it also gives images a 1px black border.
Her site is the only one that I’ve ever seen this implemented on, and I’ve always thought it was incredibly thoughtful (like most things Veerle designs).
The button can be seen, and used, on this page – just below the title, but before the first paragraph;
http://veerle.duoh.com/design/article/the_best_print_or_web_related_tip
March 31, 2011 at 11:33 am #52915zackw
MemberAs always thanks for the replies, great knowledge and fast, color contrast was taken into account in the creative work but I still may apply your suggestion @aaronsilber. I will re-post once my Jquery guy takes care of the problem to let you know how it went and exactly what code we used, thanks
March 31, 2011 at 3:32 pm #52918zackw
Memberhey guys so I didn’t properly word my question the first time, so let me try it again. It turns out we don’t just want to increase the font size but actually zoom in as if we were pressing “ctrl +”. The client feels that many people don’t know this shortcut so they want a button that does the same thing, is this possible?
April 1, 2011 at 12:05 am #52866constelllations
Member -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.