Search

The Background-Table Combo

0 views

Creating a Layered Look with Background Images and Tables

When you look at a polished website, you often notice a sense of depth or layering that makes the design feel more engaging. Rather than relying on complex frameworks or heavy scripting, you can achieve this effect with just two basic HTML tools: a background image and a simple table layout. By setting a background image first and then building the page structure around it with tables, you keep the design process straightforward and the page easy to maintain.

Start by opening your preferred HTML editor or an older, familiar tool such as Netscape Composer. If you’re working with modern code, any text editor will do - just remember that the principles remain the same. Before you begin adding text, images, or navigation links, insert your background image. This early step establishes the visual foundation and prevents later layout mishaps. In a Composer‑style workflow, you would click “Insert” and then “Image.” A dialog opens, and near the top you’ll find a “Choose File” field. Browse to the picture you saved on your computer - commonly a .gif, .png, or .jpg file - and select it. Once the image appears in the dialog, tick the box that says “Use as Background.” This tells the browser to stretch the image across the entire viewport, turning it into the backdrop for every element that follows. Hit “Apply” or “OK,” and your page will now display the chosen background behind everything else.

Where to find a good background image? There are numerous free repositories online that offer high‑resolution backgrounds suitable for commercial use. One popular source is free‑backgrounds.com, which hosts thousands of patterns, textures, and scenic shots that can be downloaded as .gif or .png files. To save an image, simply right‑click on the thumbnail, choose “Save Image As,” and give the file a descriptive name such as mybackgroundimage.gif. Keep the file in a dedicated folder - perhaps called “images” - so that your file structure stays organized. When you reference the image in your HTML, use a relative path like <body style="background-image:url('images/mybackgroundimage.gif');"> so that the page will load correctly on any server.

With the background in place, the next step is to create the table that will hold your content. Tables provide a simple, reliable way to align elements horizontally and vertically, especially when you’re aiming for a classic two‑column layout. In our example, we’ll start with a single table that spans 730 pixels across the page. Inside this table, we’ll use a single row and a single cell to hold the main body of text. Choose a cell background color that contrasts nicely with the background image - white or light gray works well for readability. Add your headline, paragraphs, and images directly into that cell. This keeps the visual hierarchy clear and ensures that the text stays centered on the page, regardless of screen size.

Once the main table is set, it’s time to introduce a sidebar. Inside the first table, insert a second table that will serve as the navigation area. Give the inner table two columns: the left column will be the main content area, and the right column will be the sidebar. Set the right column’s width to about 20 percent of the outer table’s total width. This division creates a clean, narrow column on the right side of the page. Give the sidebar a white background and some padding so that the navigation links don’t feel cramped. You can then list your links vertically or use a simple list structure. Because tables keep the columns aligned, the sidebar will stay flush against the main content even as the page resizes, giving the entire layout a tidy, professional look.

Using tables in this way has a few key advantages. First, it keeps the layout predictable: as long as you define the widths and cell padding correctly, the browser will render the columns exactly as intended. Second, it avoids the need for floats or positioning hacks that can break on older browsers or with minimal CSS knowledge. Third, because the background image is set on the body element, it extends beyond the tables, ensuring that no white space appears between the edges of the viewport and your content. All of these elements work together to create a layered effect - background image plus content layers - that feels dynamic without requiring heavy code.

To wrap up, start with a compelling background image that sets the tone for your site. Save it neatly, reference it from the body tag, and then build a two‑table layout that separates main content from navigation. This simple combination delivers a visually appealing, well‑structured page that’s easy to edit and maintain. If you’re looking for more inspiration or want to keep up with industry tips, you can sign up for free B2B newsletters from Murdok at

Suggest a Correction

Found an error or have a suggestion? Let us know and we'll review it.

Share this article

Comments (0)

Please sign in to leave a comment.

No comments yet. Be the first to comment!

Related Articles