Remember Me
forgot your password?

How To Create An HTML Image Background For Your Webpage

You can easily build an HTML image background for your webpages using everyday images, the Photoshop Slice Tool, an image background table and repeating HTML code. The beauty of this type of layout is that you do not need CSS and it expands with the length of your web page.

High Level Process

  • Find and fix images to use for header, content holder and footer
  • Open a new document in Photoshop the width of your web site.
  • Drag the images onto the template and position them so that the finished template resembles a web page (header at top, content area in middle surrounded by a border and footer at bottom)
  • Add a background color if desired
  • Slice the template into 3 sections
  • Save each section as a gif image and upload as usual
  • Build a 3-row table in the body section of your HTML document to hold each of the 3 gif images. Top row holds top gif image, middle row holds middle gif image and bottom row holds bottom gif image
  • Use repeating HTML code in the middle row so that the HTML image background expands vertically with the length of the page

Finding the Images

If you do not have images that are suitable for this purpose, search photo websites like IStockPhoto.

For the header and footer images, there are several combinations that will work, but if you want to keep it simple, use the same image(s) along the top that you use along the bottom.

One image can be copied and pasted repeatedly so that it fits the entire width of your template. An image of wood moulding, for example, can serve as the header across the top and can be flipped to be used along the bottom.

For the content holder, there are also several options. You can simply use a colored rectangle and add a shadow to it or you can use something like a picture frame to get a more ornate looking content holder.

Creating The Template For Your HTML Image Background

The template that you create in Photoshop is fully functional on it's own. All you have to do is add content to the middle section of the table.

NOTE: If you use a cascading stylesheet (CSS) on the same web page, it will interfere with the effectiveness of the template. In some cases your middle gif will repeat horizontally instead of vertically.

As an example, let's create a white document that is 950 pixels wide (this will be the width of your web page) by 600 pixels high (height isn't critical but pick something big enough so you can see what you're doing in Photoshop).

Before dragging your images onto the template, you may have to fiddle with them so that they match the width of your template. For example, if you choose an image of wood moulding that is only 250 pixels wide, you will need to duplicate the layer repeatedly and position them side by side to get a longer piece of moulding that is 950 pixels wide.

Sometimes when you copy and paste layers side by side like this, the seams will be visible. Use the Smudge Tool to blend the seams and then choose Layer-Flatten Layers so that you can easily drag the finished image onto the template and get it into position.

If you want to use this exact image along the bottom, duplicate the layer and move it to the bottom. If you want to flip it, choose Edit-Transform-Rotate.

After preparing the content holder image (the picture frame in the example above), drag it onto the template positioning it between the header and the footer and then use Edit-Transform-Scale to stretch it to size.

Add Header Text (Website Name...) and Footer Text (Copyright...).

If you want to fancy it up, use the Custom Shape Tool and pick small images to add interest to your template. The Spiral shape is a favorite. Use Edit-Transform and either Scale or Rotate to easily size and position them.

Find a complementary color in your images by using the Eyedropper Tool then fill the white space on either side of the content holder using the Paint Bucket Tool.

Use Slice Tool to Divide Template into 3 Images

Slice the document into 3 smaller images horizontally. Grab the Photoshop Slice Tool from the Tool Palette. In the top toolbar, set the Style to "Fixed Size" to ensure exact proportions. Using the 950px X 600px example, input width and height as follows:

  • Top slice equals 950px X 250px
  • Middle slice equals 950px X 100px
  • Bottom slice equals 950px X 250px

CAUTION: Make sure that your top and bottom slices are large enough to completely contain the header and footer respectively.

Now you have one document sliced horizontally into 3 smaller images. The next step is to "Save For Web" and upload each image as a separate gif. In the "Save For Web" dialog box, save each slice separately by clicking on the slice and naming it. Upload the 3 gif images as usual.

Create a table in the body section of your HTML document to hold the background image url for each gif and your content.

  • The first row in your table contains the top gif
  • The middle row contains your middle gif, the repeating HTML code and the content
  • The last row in your table contains the bottom gif

These 3 gif images when displayed on a page will result in a one-of-a-kind, professional looking HTML image background, perfect for a simple web page or sales letter. The possibilities are only limited by your creativity.

Sandee Lembke

Sandee Lembke invites you to visit Free-Website-Tutorials.com where you can watch a Video Tutorial showing step by step instructions on How to Create an HTML Image Background. All of the steps above are demonstrated in this Video Tutorial. Also download a Free PDF Supplement showing Photoshop Slice Tool screen prints and copy the exact HTML Drop Shadow coding required to create this web page effect.

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Web Design Articles
  • More from Sandee Lembke

4 Web Development Practices to Save Time and Money

By: Sofia Sapojnikova | 28/12/2009
It has never been more important than now to save time and money when building or maintaining a website. Here are some practices that we recommend.

4 Web Development Practices to Save Time and Money

By: Sofia Sapojnikova | 28/12/2009
It has never been more important than now to save time and money when building or maintaining a website. Here are some practices that we recommend.

Website Design Los Angeles

By: David Wilson | 28/12/2009
I was recently looking for Los Angeles Website Design firm. I need a quality website but I also feel that if you're looking for Web design and development, should not have to pay an arm and a leg. I found that many Los Angeles website design firms charge a really high prices for a website that is looks almost exactly the same as the rest of the sites that they built. If you come across one of these website design firms in Los Angeles, it is probably better to just continue looking.

Website Design in Orange County

By: David Wilson | 28/12/2009
Times are tough right now. I live Orange County, which is almost ground zero for the whole mortgage meltdown. I've seen many people lose there homes. It's hard to find the money to re-design my website, but I had to. Without a top north website, the people that come to my website aren't converting into sales. After some searching for a firm to design my website, I found Urbangeko.com. With their unique approach to the art of website design, they gave me the level of expertise that I needed. This

Website plays an important role to run an online business

By: Pradeep Shukla | 28/12/2009
Website is the most important thing to have if you are planning to run an online business. With the help of a website you can easily reach your target audience.

Professional Flash Designers for Web Advantage

By: Arun Kumar | 28/12/2009
Adobe Flash has fast evolved into a complete design and animation tool. With the use of Flash, a professional Flash web designer can now easily create breathtaking designs for any type of website. What makes everything exciting about Flash web design is that Flash is really affordable and despite its affordability it never shies on functionality.

Developing Web Based Application using PHP

By: spinxwebdesign | 28/12/2009
Now a day’s PHP is very popular to develop web based application. The biggest advantage of PHP is it is absolutely free to use. PHP based development is very fast and application developed in PHP also gives very good performance at the same time they are secure also.

How to Design an Effective, SEO-Friendly Restaurant Website

By: TheBrainchild | 28/12/2009
A website is truly the online face of your business and will provide a first impression to potential customers. We all know how important first impressions are. When thinking about restaurant website design, there are many things to consider. Simply creating a website to market your restaurant will do very little good. This article provides information on how to effectively design a restaurant website, achieve high rankings in search engines, and increase sales through online channels.

How To Wrap Text Around Image

By: Sandee Lembke | 17/11/2009 | Web Design
Learn how to wrap text around image when building webpages. Conquer one of the most frustrating tasks a new webmaster encounters...getting text and images spaced properly.

How To Create An HTML Image Background For Your Webpage

By: Sandee Lembke | 12/10/2009 | Web Design
Learn how to create an HTML Image Background for your webpages that expands with the length of the page. Build a template in Photoshop, then use the Slice Tool to cut it into 3 gif images. Display on webpages using repeating HTML code.

Analyze Keywords Using Adwords Keyword Tool and Excel Macro Function

By: Sandee Lembke | 25/09/2009 | Web Design
Learn how to analyze keywords using the free Google Adwords Keyword Tool and the Microsoft Excel Macro Function to quickly process through massive amounts of potential words. Save time and money using this free keyword selection process.

How To Create A Web Page Shadow Using Photoshop Slice Tool and HTML Coding

By: Sandee Lembke | 03/09/2009 | Web Design
For an interesting 3D effect, add a web page shadow all the way around your entire page. Read these step by step instructions or watch an informative Video Tutorial which demonstrates the Photoshop Slice Tool and explains the required HTML coding.

Looking For a Stay Home Mom Job? Maybe I Can Help

By: Sandee Lembke | 24/04/2009 | Parenting
After struggling for years in Corporate America, I finally found a fulfilling stay home Mom job. If you have the will, I'll show you the way. Read my story and gain access to three very detailed guides to help work at home moms (WAHMs) get started.

How To Make Grape Wine - Three Period Fermentation Process

By: Sandee Lembke | 16/03/2009 | Wines & Spirits
Learn How to Make Grape Wine at Home for as Little as 49 Cents Per Bottle a Very Economical Solution for Wine Lovers. Use Your Own Ingredients or Use a Winemaking Kit.

Best Margarita | Set Up a Home Bar | Offer Multiple Flavors

By: Sandee Lembke | 04/02/2009 | Wines & Spirits
Let your guests make their own Best Margarita. Follow these easy steps to set up a Margarita Bar at your next party. Special flavors, salts and garnishes.

Football Pool -- How to Organize--free Football Pool Grid

By: Sandee Lembke | 05/01/2009 | Football
Learn how to set up a football pool, determine who wins and how to split up the pot. It is very common to organize a football pool for big games, especially The Super Bowl. Whether you are having a football party or just organizing an office football pool, find what you need here.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.80, 6, w3)