---
title: "Changing the content background style in osCommerce"
description: "Once 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..."
url: https://www.inmotionhosting.com/support/edu/oscommerce/changing-the-content-background-style-in-oscommerce/
date: 2013-04-22
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["OsCommerce"]
type: post
lang: en
---

# Changing the content background style in osCommerce

[![osCommerce without content background style](https://www.inmotionhosting.com/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_custom-bodywrapper-1-without-content-style.png)](/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_custom-bodywrapper-1-without-content-style.png)

Once you have [changed the background image of your osCommerce site](/support/edu/oscommerce/change-background-image-os/), 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 osCommerce](https://www.inmotionhosting.com/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_header.png)](/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_header.png)

The 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 *#bodyWrappe*r 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 *#bodyWrappe*r content in osCommerce.

1. [Login into your cPanel](/support/edu/cpanel/how-to-log-into-cpanel/).
2. [Go to the File Manager](/support/edu/cpanel/using-file-manager-in-cpanel/). **Select** your osCommerce installation directory and click **Go**.
3. [![Upload the header to the images folder osCommerce](https://www.inmotionhosting.com/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_click-upload.png)](/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_click-upload.png) [Upload](/support/website/how-to-edit-a-file/) the *header.png* image to the images folder in your osCommerce installation directory.
4. [![CSS code osCommerce](https://www.inmotionhosting.com/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_custom-bodywrapper-3-css-code.png)](/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_custom-bodywrapper-3-css-code.png) [Edit](/support/website/how-to-edit-a-file/) 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:solid; 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 osCommerce](https://www.inmotionhosting.com/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_custom-bodywrapper-4-final-view-with-style.png)](/support/wp-content/uploads/2013/04/edu_oscommerce_201_change-content-style_custom-bodywrapper-4-final-view-with-style.png) Now 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.
