Toggle Menu
  • Home
    • About Us
    • Contact
    • Portfolio
  • Expression Web 4
    • Installing Expression Web 4
    • Setting Up Expression Web 4.0
    • Create New Website
    • Create a Blank Web Page
    • Create a Webpage Layout
    • Adding Horizontal Top Navigation
    • Adding Vertical Navigation
    • Validating Your Pages
    • Creating an Expression Web Dynamic Web Template
    • Publishing Your Web Site
    • How to back up your local website on your hard drive
    • SEO Checker and Report
  • Tutorials
    • Adding Insert Include Code into Code Snippets
    • Auto Thumbnail in Expression Web
    • Broken Dynamic Web Templates and hidden metadata files
    • Code Snippets in Expression Web
    • Compatibility Checker on Status Bar in Expression Web
    • Create and Style a Data Table
    • Creating a New Font Family Group
    • Creating a New Page from Hyperlink Properties
    • Creating web site from site templates in Expression Web
    • CSS Properties panel
    • Expression Web Preview in Browser
    • Expression Web and Design Time Includes
    • How to back up your local website on your hard drive
    • How to create a Personal Web Package
    • Import Site Wizard in Expression Web
    • Importing your folders/files into Expression Web
    • Inserting Images in Expression Web
    • Interactive Buttons in Expression Web
    • Migrating a FrontPage Site to Expression Web
    • Modify Style Dialog Box
    • New Style Dialog Box
    • Publishing Your Website from the Remote Server with FrontPage Server Extensions
    • Editing Reusable Forms
    • Troubleshooting Image Problems in Expression Web
    • Using the Expression Web SEO Checker and Report
    • Validation Error - no attribute "xmlns:v"
    • Web Album Generator and Expression Web
    • What are all the style# in my page?
    • Zoom Search and Expression Web
    • Working With Left Border Background Images
  • Resources
    • Accessible Color - Color Contrast
    • CSS Basics
    • Expression Web eBooks
    • Guide to Dealing With Google's Malware Warnings
    • Free Forms
    • Learn HTML
    • Migrating from FrontPage to Expression Web
    • Newbies
    • Search Engine Optimization - SEO
  • Templates
    • Complete Site Templates
    • Expression Web In Box Templates
    • Dynamic Web Templates
    • Mobile Friendly Site Templates
    • Crafting Series
    • Christmas Templates
  • Web Design Tutorials
    • Accessible Forms
    • Add a Search Box
    • Adding Google Search
    • Accessible Data and Layout Tables
    • Anchor Tags and Name Attributes
    • Best Font Size for Web Design?
    • Center Page in Browser Window
    • HTML Lists
    • How to create and extract a Zip File in Windows
    • How to Create a Self-Extracting Zip File
    • Validation Error - no attribute "xmlns:v"
    • Working With Left Border Background Images
    • Handle Background Transparency in Snagit Editor Like You Would in Photoshop
  • Bluehost Tutorials
    • Add-on Domains at BlueHost
    • BlueHost 301 Redirects
    • BlueHost Webmail
    • Customizing BlueHost Error Pages
    • How to make a subfolder the main folder for your BlueHost main domain
    • How to change the Primary Domain
    • Installing a WordPress Blog Using Simple Scripts
    • Mannaging SSL on BH
    • Password Protecting Directories and/or Files with Bluehost
    • Server Side Includes, BlueHost, and Expression Web
  • Expression Web Addins
    • Ajatix Email Spam Blocker
    • Ajatix Advanced CSS Drop Down Menu
    • Ajatix Lightbox Add-In
    • Ajatix Image / Banner Slider

Working With Left Border Background Images

If you decide you wish to use a background image that contains a left border graphic image on your site, remember one thing - not all left bordered backgrounds are created equal.

Selecting the background image

Use care when you select the image you would like to use for your page or site. I found each of the images shown below, in collections of left border background images. Which ones are likely NOT to work well as a page background image and why? You can click on the image for a full size page with information on each of the images and how to use them


Actual Image Size: 175px by 1100px

Sample Background Image.
Actual Image Size: 161px by 1173px


Actual Image Size: 100px by 800px

Many folks who use a background image insert it as the page background but neglect to indicate how the image should repeat. The default is to repeat both horizontally and vertically. The only problem with that is with today's large screen monitors, you are going to end up with a page that has  the repeating background across the content area.

View Screenshot

 

Using the background Image

If you are going to use a left border background image on your page, the style rule would be part of your body style rule and would look like:

body {
font-size: .95em;
color: #000;
background: #F7F5D5 url('images/17bg.jpg') repeat-y;
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
margin: 0px 0px 0px 175px;
padding: 0px;
}

The style rule for the background is written using css shorthand.

The margin style rule tells the browser that the margins will be 0px for the top, right, and bottom margins and the left margin will be 175px. Make sure you specify a wide enough left margin so the content will NOT overlap the left graphic image border.

Your choices for repeating the image are:

Background repeat Property Values
Value Description
repeat The background image will be repeated both vertically and horizontally. This is default
repeat-x The background image will be repeated only horizontally
repeat-y The background image will be repeated only vertically
no-repeat The background-image will not be repeated
inherit Specifies that the setting of the background-repeat property should be inherited from the parent element

You should also specify the style rules for the container which will hold the actual content for your page. I tend to use outerWrapper for that div name and the style would look something like this:

#outerWrapper {
width: 95%;
text-align: left;
margin: 0 auto 0 auto;
padding: 20px;
}

This tells the browser to make the div container fill 95% of the available space, and center the div container on the page. Also to adding a 20 px padding to the container.

The background style rule can use css shorthand. The style rules for the background would be written as follows:

 

Summary

In selecting your image remember:

  1. Images on a textured background are going to be impossible to bland seamlessly with the background color.
  2. Light backgrounds will work better for text visibility.
  3. Dark backgrounds with light text are more difficult to read.
  4. Most graphic image backgrounds require a link back to the site where you downloaded the image.

Once you decide on an image and add it to the style rules, remember to do the following:

  • Specify a vertical repeat for the image.
  • Specify a background color that is the same as the overall background color of the image.
  • Specify a left margin in your body style rules so the content of your page does not overlap the image.

Example of Actual Page with real content - repeat value NOT specified

Example of Actual Page with real content - image repeated vertically on page

If you are looking for some left bordered background images to try out visit BoogieJack.com

Pat Geary.
Copyright © 2011 Pat Geary of Expression Web Tutorials & Templates All Rights Reserved
Written April 2011



Expression Web 4.0 Tutorials 2nd Edition from Install to Publish, a FREE EBook by Pat Geary.

Expression Web 4.0 Tutorials 2nd Edition from Install to Publish, a FREE EBook by Pat Geary.

Join our Facebook Group for Expression Web.

Expression Web has a group on Facebook. If you are a FB user, come join us.

Signup for BlueHost hosting account.

Disclosure: This is an affiliate link, which means that if you visit Bluehost.com through this link and purchase this product, I’ll get a commission.

Microsoft MVP Logo.
April 2007 - April 2013

Copyright © 2008 - 2025 Expression Web Tutorials and Templates - Pat Geary - All Rights Reserved

Privacy Policy |  Migrating from FrontPage to Expression Web

Microsoft® and Expression Web® are registered trademarks of Microsoft® Corporation.

Site Design & Maintenance : Expression Web Tutorials & Templates