spacer
Yehuda Shiran October 2, 2001
Zooming In and Out of Elements
Tips: October 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

One way to easily control the size of text and graphics on a page is by changing the STYLE's zoom property. In the HEAD section of this tip, we have the following STYLE definition:

<STYLE TYPE="text/css">
#example1
{
  zoom:50%;
  width:100%;
  position:relative;
}

#example2
{
  zoom:100%;
  width:100%;
  position:relative;
}

#example3
{
  zoom:200%;
  width:100%;
  position:relative;
}
</STYLE>
The following three DIV elements demonstrate the effect of different zoom definitions:

Have you read our columns about Print Templates?
Have you read our columns about Print Templates?
Have you read our columns about Print Templates?

Here are the DIV definitions for the above examples:

<DIV ID="example1">
Have you read our columns about Print Templates?
</DIV>
<DIV ID="example2">
Have you read our columns about Print Templates?
</DIV>
<DIV ID="example3">
Have you read our columns about Print Templates?
</DIV>

People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint