Tutorials & Script Homepage
HTML/DHTML 8to14
Alignment of Images
Spacing Around
Aligning Text
Image Borders
Wrapping Text Around an Image
Preformatted Text
Background images
advertisment
advertisement
advertisement
Host With Us: HostingHelper.co.uk From Only $5.00p/m
Spotted an Error ? Let us Know
100's more FREE templates at FreeWebTemplates
Looking for a new Web Host ?
Free templates from TemplatesLand
Professional High-End Templates
TemplateBox.com more FREE templates
Free Flash Templates and Intros
advertisement
 
HTML/DHTML TUTORIAL NUMBER : 14
Please Click Here, and Help Keep This Site FREE to Use
 
Please click on our sponsors advert to the right if you download or use anything from this page.
Thank you for your help.
This tutorial has been created by: WebMonkey

Background Images

The <body background> tag allows you to use an image file for the background of your Web page. A large image may only appear once (depending on the size of the browser window), but smaller images will be redrawn as many times as necessary to fill a page - a process known as tiling.

If you write in your HTML doc:

<body background="kitty.gif">

Then kitty will appear in your background as many times as the browser window and the size of your image will allow. If, for instance, it's a small image - say, 20 by 20 pixels - and the page is being viewed in a 480 by 640 browser window, then kitty would appear an astounding 768 times.

Keep in mind that there's no way to prevent a background image from tiling. So if you want to make sure it doesn't, you'll have to make the image wide enough and tall enough to accommodate large monitors.

On this example page, for instance, we wanted our background image to create a stripe down the left-hand side, and we wanted the image file to be as small as possible. However, we didn't want more than one stripe to appear, no matter how wide the monitor is (in other words, we wanted the image to tile vertically, but not horizontally). To accomplish this, we created a short, wide, striped image - 1,200 by 24 pixels - that looks something like this (only larger):

[Background image - only smaller]

That way, someone would need a browser window at least 1201 pixels - or just under 17 inches - wide to see a second stripe, but the image size is still quite small (25K). Note that the pixel-to-inch ratio is adjustable, and varies from platform to platform; 72 pixels per inch is standard, since it corresponds with the typographic rule of 72 "points" per inch.

Note: Almost the whole browser gang supports background images (including Netscape 1.1 and later, and all versions of Internet Explorer). Only older versions of NCSA Mosaic and the AOL browser will turn down your background image.yourself.

I hope this came in useful!
Ask in the forum if you have any suggestions or comments.

Web Hosting  |  Membership website templates  |  Reliable UK Web Hosting  |  dresses  |  Art Web Templates  |  Cheap Flight Deals  |  UK Web Hosting Company  |  Coursework Writing  |  Reseller Hosting  |  coches de ocasion  |  Cheap UK Web Hosting  |   cell phones  |  Web Design  |  Low Cost Domain Names  |  Website templates  |  master a distancia  |  Austin Web Design  |  Flash Templates  |  Factory  |   cell phones  |  Canadian Web Hosting  |  Flash Intros  |  Web Templates  |  cartuchos  |  Corporate Logo Design Service  |  Website Templates  |  Bespoke Software Development  |  Domain Name Registration  |  Free Website Templates  |   Dedicated Server  |  UK Web Hosting  |  Dating Software - aeDating 4.1  |  Website Templates  |  Power Saver  |  taobao agent  |  Flash templates  |  cctv cameras  |  Lolita Dresse  |  china wholesale  |  Canadian Web Hosting  |   Cheap Web Hosting Deal  |  Linux Hosting  |  Web Design uk  |  Web Hosting  |  Business web directory  |  Electronics  |  Free domain names  |  Best UK web Hosting  |  Shower Enclosures UK  |  

 
advertisment
advertisment
advertisment
  Top-end templates
  Flash Templates
  Web Hosting UK
  Made-in-China.com
  Web Design Tips
  Web Hosting Reviews
  Web hosting reviews
  Website Design
  Top web hosting
  Stock Photography
  Bildagentur
  Reseller Hosting
  Company Logos
  Website Templates
  Website Templates
  Web Hosting UK
  templatebox.com
  freewebtemplates.com
  templatesland.com
  topfreegraphics.com
  freegraphicland.com
  free-templates-layouts
  Logo Design Software
  Layouts4Free
  Webmaster Resoucres
  Web Templates Factory
  Free Web Templates
  Free Templates Catalog
  Web Templates
  Reseller Web Hosting
  Stock Photography
  Animations-galore.com
  4print.com.au
  Host Review
  Web Hosting Host Color
  Dedicated Servers
  FlashTemplateDesign
  ZeroDollarTemplates
  Killersites.com
  how-to-build-websites
  Build a free website
  web Hosting
  Business Logo Design
  Templates Favpage
  webmastermind.de
  flasheasy.com
  More Featured Sites