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

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

webref The latest from WebReference.com Browse >
Administering MySQL Databases on the Web Using PHP · Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
So what is an Oracle Nested Table? · E-Discovery Architectures 101 · eBay Embraces Big Sellers, Cyber Monday Trends