Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing background colour of the left column


mark27uk3

Recommended Posts

Posted

Hi Guys,

 

I would like to change the background of the left column similar to this site here

 

Is it possible to do it like this just using the stylesheet and then adding the classes to the column left file?

 

If it is possible will someone please give me an example.

 

Thanks

 

Mark

Lifes a bitch, then you marry one, then you die!

Posted

Can this be done without using the sts or bts contribs?

 

Mark

Lifes a bitch, then you marry one, then you die!

Posted

i think that site uses the contribution called Fixed Width Site Template

 

if u search in contribution u should be able to find them..

l8ter

Posted

I know how to center the site and give it a fixed width, what I dont know how to do is add a background to the left column using the stylesheet.

 

If this is at all possible??

 

with Regards

 

Mark

Lifes a bitch, then you marry one, then you die!

Posted
Can this be done without using the sts or bts contribs?

 

Mark

Yes. Just add a table to encompass the whole column_left file (probably best to do this in the file iteself) and then call the class you want to use with the background set to what you want..

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

I tried doing that but could not get it right, as the table needs to be wider than the info boxes .

 

Anychance of showing an example please Jack

 

with Regards

 

Mark

Lifes a bitch, then you marry one, then you die!

Posted

Place this code at the beginnig before the first infobox is called

<tr>
<td valign="top">
 <table cellpadding="14" cellspacing="14" width="190" bgcolor="red" valign="top">
  <tr>
   <td>
    <table border="0" cellpadding="0" cellspacing="0" valign="top">
     <tr>
       <td align="center">

and this goes at the end of the file

</td></tr></table>
</td></tr></table>
</td></tr>

The above will probably need to be surrounded by <?php and ?> and you will should replace the above attributes with a class but it should get you started.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Thanks Jack,

 

That has worked lovely :-" , now while you are glued to your pc.

 

There is a white gap around the table, I have changed the cellpadding in the index.php to zero but still have a white space.

 

Is there anyway to butt it right upto the edge?

 

I think this is the right bit

 

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->

 

Regards

 

Mark

Lifes a bitch, then you marry one, then you die!

Posted

Hi Jack,

 

Did not show a thing m8!

 

Any other waves of inspiration?

 

Mark

Lifes a bitch, then you marry one, then you die!

Archived

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

×
×
  • Create New...