FrontPage Templates & Web Design - Your One Stop Resource Center!

FrontPage Templates & Web Design Web Design with FrontPage Templates
  FrontPage Universe Templates - Home FrontPage Universe Templates - About Us FrontPage Universe Templates - Contact Us FrontPage Universe Templates - Privacy Statement FrontPage Universe Templates - Terms of Service FrontPage Universe Templates - Search
Web Design Templates
Join Our FrontPage Newsletter  
 

 

Home
FrontPage Templates
Site Evaluation Tools
FrontPage Resources
Web Site Promotion
Web Hosting
Affiliate Programs
Internet Marketing
Web Software
SE Optimization
Web Design Tips & Tricks
ClickBank Portal
Privacy Policy
Links

 

 

Web Design Tips

FrontPage Universe
 

One image, many sizes


Sometimes you want to add one particular image to various webpages, but you want each instance of the image to be a different size. Here is a quick and easy method of doing that using CSS. To your style sheet in your <head> area, include the following classes. Modify the width and heights to your own specifications.

<style type="text/css">
img.regular
{
height:auto;
width:auto;
}
img.larger
{
height: 100px;
width: 526px
}

img.smaller
{
height: 25px;
width: 132px
}
</style>

To the specific images that you wish to resize add the applicable class id as illustrated below.

<img class="regular" src="http://images.frontpageuniverse.com/frontpageuniverse/images/header_logo.gif" width="263" height="50">
<img class="larger" src="http://images.frontpageuniverse.com/frontpageuniverse/images/header_logo.gif" width="263" height="50">
<img class="smaller" src="http://images.frontpageuniverse.com/frontpageuniverse/images/header_logo.gif" width="263" height="50">


 

 

Join our FrontPage Universe Newsletter
Please Subscribe to our FrontPage Web Design Newsletter

 

 
 
 
 
 
 
 
 

 

Contact: info@frontpageuniverse.com
Copyright © 2003 (FrontPage Universe). All rights reserved.

Last Modified October 12, 2007