InMotion Hosting Support Center

osCommerce without content background styleOnce you have changed the background image of your osCommerce site, you will want to customize the body of the webpage. The snapshot to the right shows what the osCommerce site looks like with no background for the content area for the "Sunny" theme. You see the website background through it.

To style this we will need to edit the stylesheet.css file. The CSS code in the stylesheet.css file is the #bodyWrapper id. This article will explain how to change the color of the background of your osCommerce #bodyWrapper content.

Create a header image

Create a header.png osCommerceThe first thing you will need to do is create an image for your header. Just like the last tutorial, we will make the header image duplicate across the header. The image we will use in this tutorial is found to the right. Part of the #bodyWrapper is the header section. The header section simply needs an image to make it fit the body content color. Below are the steps to set this up.

Add the CSS for the #bodyWrapper content

Once you have the image you want for your header, you can now add the code which will style the #bodyWrapper content of your site. below are the steps to add the CSS code for your #bodyWrapper content in osCommerce.

  1. Login into your cPanel.
  2. Go to the File Manager. Select your osCommerce installation directory and click Go.
  3. Upload the header to the images folder osCommerceUpload the header.png image to the images folder in your osCommerce installation directory.
  4. CSS code osCommerceEdit the stylesheet.css file in your osCommerce installation directory. Add the following code to the #bodyWrapper CSS.
    #bodyWrapper {
    background: repeat-x top  url('images/header.png') #fff8e5;
    border-width: 0px 1px 1px 1px;
    border-color: #494437;

    This code will add a border around the bodyWrapper, fill in the background with the #fff8e5 color, and duplicate the header image across the top.

    Note! the color for the background in this example is #fff8e5. You can change to whatever color you want.

    Save the file.

    View with the body styled osCommerceNow the #bodyWrapper area is styled with a border and a solid background.

The next tutorial will explain how to customize the footer of your osCommerce site.

Was this article helpful?
Continued Education in Course 201: Changing your osCommerce appearance
You are viewing Section 10: Changing the content background style in osCommerce
Section 9: Removing the branding from the osCommerce footer
Section 11: Changing the background image in osCommerce

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!