Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using a different page background colour to all tables and boxes


Foxglove

Recommended Posts

Hello folks, I am setting up a new store and am having problems trying to find how to have different background colours from the page background to the central table/boxes.

 

I have managed to center everything to a desired width by adding a new table with a border in the header.php and footer php files, and tried without success to have the entire central table background to be white. Editing the css stylesheet doesn't change anything. Could someone please tell me what I need to do?

 

I have been trying to solve this on my own but after many hours searching I haven't found a solution. I will include a link to show you what I mean. Basically, I want the middle columns to have white background/s and not the colour they are now which is the same as the entire page bg. http://snuggsox.co.uk/catalog/index.php

 

Your help will be most appreciated!

 

Thanks for your time and please let me know if you have the answer :)

Link to comment
Share on other sites

Hello folks, I am setting up a new store and am having problems trying to find how to have different background colours from the page background to the central table/boxes.

 

I have managed to center everything to a desired width by adding a new table with a border in the header.php and footer php files, and tried without success to have the entire central table background to be white. Editing the css stylesheet doesn't change anything. Could someone please tell me what I need to do?

 

I have been trying to solve this on my own but after many hours searching I haven't found a solution. I will include a link to show you what I mean. Basically, I want the middle columns to have white background/s and not the colour they are now which is the same as the entire page bg. http://snuggsox.co.uk/catalog/index.php

 

Your help will be most appreciated!

 

Thanks for your time and please let me know if you have the answer :)

In /includes/header.php

 

<!-- header //-->

<table color="#666666" bgcolor="#ffffff" align="center" background="#FFFFFF" border="1" width="820">

Add the code in RED

 

BACKUP THE FILE BEFORE MAKING EDITS.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 2 months later...

In /includes/header.php

 

 

Add the code in RED

 

BACKUP THE FILE BEFORE MAKING EDITS.

Hello:

 

I have also researched this topic for days now. I had even posted a new topic about it. This is the closests I've ever been to resolving this issue :sweating:. Just one question though (totally noob question, sorry), I don't see the code for a table color, etc... in my header its just:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link

 

So, would I add the entire table formatting line under this?

 

Thanks so much in advance!!!

I Hate PHP, LoLssss

Visit My Site, Any constructive comments and suggestions Welcome :)

WARNING: IT'S STILL UNDER CONSTRUCTION, LOLS

Link to comment
Share on other sites

Hello:

 

I have also researched this topic for days now. I had even posted a new topic about it. This is the closests I've ever been to resolving this issue :sweating:. Just one question though (totally noob question, sorry), I don't see the code for a table color, etc... in my header its just:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link

 

So, would I add the entire table formatting line under this?

 

Thanks so much in advance!!!

I would need a URL to your store (by post or PM) to answer your question.

 

I tried the link in your profile, but found no osC store there.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I would need a URL to your store (by post or PM) to answer your question.

 

I tried the link in your profile, but found no osC store there.

:blush:

Hello germ:

 

I have sinced started from scratch again, not because of this issue, but because I was getting all sorts of snapshot () errors all over the place, I did research, but eventually gave up and started over again (for the tenth time :'( ), hopefully the last. Sorry for not posting that and kind of wasting your time, I really appreciate your help though, very nice of you to respond. I ended up using a contribution to center the store, a really simple one, I don't like using the ones where their is a lot of changing files, because I'm terrified of messing up codes... Anyways, (I TALK TOO MUCH, OR WRITE) I installed the store in a different directory, I'll change that!!! It is now fiestaseshalyn.com/shop, if you have the time, take a look I would be most honored by your input :), I know you are a big contributor here, I've seen you all over the place, while doing research :thumbsup: !!!

 

Once again, many many thanks

Glenda

I Hate PHP, LoLssss

Visit My Site, Any constructive comments and suggestions Welcome :)

WARNING: IT'S STILL UNDER CONSTRUCTION, LOLS

Link to comment
Share on other sites

Hello germ:

 

I have sinced started from scratch again, not because of this issue, but because I was getting all sorts of snapshot () errors all over the place, I did research, but eventually gave up and started over again (for the tenth time :'( ), hopefully the last. Sorry for not posting that and kind of wasting your time, I really appreciate your help though, very nice of you to respond. I ended up using a contribution to center the store, a really simple one, I don't like using the ones where their is a lot of changing files, because I'm terrified of messing up codes... Anyways, (I TALK TOO MUCH, OR WRITE) I installed the store in a different directory, I'll change that!!! It is now fiestaseshalyn.com/shop, if you have the time, take a look I would be most honored by your input :), I know you are a big contributor here, I've seen you all over the place, while doing research :thumbsup: !!!

 

Once again, many many thanks

Glenda

In your case the header background color is in the stylesheet:

 

TR.header {
 background: #EDDFFB;
}

Sometimes after changing the stylesheet in order to see any change you have to hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet.

 

This works with IE and Firefox.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

In your case the header background color is in the stylesheet:

 

TR.header {
 background: #EDDFFB;
}

Sometimes after changing the stylesheet in order to see any change you have to hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet.

 

This works with IE and Firefox.

Really appreciate your time and help, thank You!!! :thumbsup:

I Hate PHP, LoLssss

Visit My Site, Any constructive comments and suggestions Welcome :)

WARNING: IT'S STILL UNDER CONSTRUCTION, LOLS

Link to comment
Share on other sites

  • 10 months later...

I wanted to change background color on center column(info box) to white. I was not successful with the suggestion below. However, I did manage to change the center info box on all my pages to white while having original background behind it.

In,

catalog/stylesheet.css

edit,

#bodyContent {

}

Replace with,

#bodyContent {

background-color: #ecf6fc;

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...