Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
photo of Jennifer Kyrnin

Jennifer's Web Design / HTML Blog

By Jennifer Kyrnin, About.com Guide to Web Design / HTML since 1997

Learn how to create zoom buttons for your pages

Tuesday August 5, 2008
Zoom buttons are those icons you see on Web pages that allow you to make the font size of the page smaller or larger to meet your needs. It turns out that with CSS alternate stylesheets and a stylesheet switcher, it's easy to create these buttons.

Stumble It! Add "Make Zoom Buttons for Your Web Pages" to del.icio.us

Comments

August 5, 2008 at 2:37 pm
(1) Joseph says:

I love this element of css but it’s crippled in complex designs. Points and pixels render em useless.

The function works well on blogs, where designs are simpler. Right now the home page of the New York Times already has fit issues at default size, enlarge the character size and watch it all go to hell.

I doubt I'’ll be using em in my new design, trying to fabricate one for the client he’ll like is hard enough without making it seamlessly expandable.

August 5, 2008 at 6:02 pm
(2) Jennifer Kyrnin says:

Joseph: Points and pixels are not the point - as you can create a zoom CSS stylesheet with points as the font size or pixels. Or whatever font size measure you prefer. Personally, I use ems, but that is not a requirement for this type of zooming.

I do agree that doing this for a complex design is difficult and time consuming. I wouldn’t want to be the one who had to do it for even the About.com pages, let alone the New York Times or some other site where there were lots of developers.

August 6, 2008 at 12:46 pm
(3) Joseph says:

All right, thanks. I was under the impression em was necessary for effective zoom; use points or pixels and it won’t work well, obviously that’s incorrect, sorry.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Web Design / HTML

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.