Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the site demensions and background color


outsourcethis

Recommended Posts

Posted

I've installed Oscommerce and have a very nice operating site.

 

There are two items I would like to do.

1) Stretch the main site width side to side, so it is wider.

2) How can I change the background to another color. My site is in the middle of the page/browser and on either side of the site is white space. I want to change this white space to another color or background.

 

 

Here is an example. This site is not mine but it has those side spaces colored grey. http://shops.oscommerce.com/directory/goto,27915

 

I'm not the best at website coding so I'm hoping this is straight forward and easy.

Any ideas?

 

Thanks in advance.

Posted

The color is controlled by this in the stylesheet in the site you linked to:

 

BODY {  background: #C0C0C0;   color: #000000;  margin: 0px;}

The gray color is this in that code:

 

background: #C0C0C0;

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 >

Posted

And I couldn't tell you how to make the site wider without knowing how it's "contained" presently...

: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 >

Posted
And I couldn't tell you how to make the site wider without knowing how it's "contained" presently...

:blush:

 

Thanks for the good info. What does "contained" mean?

Posted
The color is controlled by this in the stylesheet in the site you linked to:

 

BODY {  background: #C0C0C0;   color: #000000;  margin: 0px;}

The gray color is this in that code:

 

background: #C0C0C0;

 

 

Thanks for the edumacation....:)

 

If I can ask another wquestion: what if I didn't want to change the color but I wanted to add some premade background image? How would I go about dat?

 

Thanks for the help so far.

Posted

That there are several ways to keep a site a certain width.

 

If yours doesn't go from one side to the other there must be something already limiting the width.

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 >

Posted

Background image stylesheet code example:

 BODY {
 background-image: url('images/your_image_name_here.jpg');
 background-repeat: repeat;
 background-position: center;
}

The last two lines aren't mandatory - just depends on the effect you're trying to achieve.

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 >

Posted
That there are several ways to keep a site a certain width.

 

If yours doesn't go from one side to the other there must be something already limiting the width.

 

 

Not sure if my site's width can be adjusted. I haven't been able to find enough info for me to figure out were to look in my code. Might be the template I purchased for the site, now that you mention the limiting width idea.

 

I might need to check that out, though I must confuss I'm not sure how to do that either.

 

I had someone build that site but now I'm finding I enjoy doing the work myself but there are lots of things to learn.

Archived

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

×
×
  • Create New...