Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to get rid of boxes & Make Columns 1 Block ???


CC

Recommended Posts

Posted

Hi all

 

I reckon this is a simple thing, but I am trying to get rid of the boxes on my webpage and make one big column instead.

 

Can anyone point me in the right direction please?

If you dont follow me, I mean I want my columns to look like either of these:

 

www.dv-depot.com

or

www.pcbuzzard.de - Just the left column here.

BTW Kenny rocks when it comes to offering help. :wink: (Gratuitous plug!)

 

So i want rid of the boxes all together and I want my column to all be together with a background.

 

Can anyone assist in what I need to change, like:

Do I have to change each boxes HTML individually or is there one location for how the boxes look?

 

Do I have to alter any cellpaddig settings to close them together or does that not need messing with?

 

Will the headers only need changing in .css file? Or not??

 

Really I just need someone who has done it to tell me how they did!

 

Hope you guys can help.

 

CC.

Posted

that has to do with the cell spacing set up for the table in the default.php, mess with that and see what you get.

Posted

I have tried that part and it does get them together, but I am sure there is more to it than this.

 

I could be wrong, but Kenny did try telling me once, but he is a busy guy and he is very short on description.

 

not dissing you Kenny, but if onyl I could sit you down and ask you 20 questions I would be well on my way! :wink:

 

So if anyone lese can shine a light on it please do.

 

CC.

Posted

Open up boxes/categories.php and remove the bottom </td> and </tr>

 

Open up the boxes/<whichever>.php that you have below categories infobox in your shop and remove the top <tr> and <td>

 

Notice what happens ? Thats the first step to set you on your way. Have a play with that.

 

Next up, set the CSS for the infobox outline to white (if you have a white background to your shop). Thats the next step.

 

This is the quick way, not necessarily the best way.

 

HTH

Posted

Erm... Burt.

 

Now you have always been good to me, but I feel you maybe taking the mickey out of me... :)

 

I did it, and what I get now is my left column stretches right accross my page, the full width. Hehe.

 

Is you playing silly beggers with me? :wink:

 

CC.

Posted

Try adding a <br />

to the boxes where you removed the <td> etc.

 

Now that wasn't hard was it?

:)

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

you wont see a problem at the moment cos i have put the originals back in while i play around.

 

CC.

 

Please keep suggestions coming.

Posted

<!-- body //-->



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



 <tr>



   <td width="150" valign="top"><table border="0" width="150" cellspacing="0" cellpadding="2">

that is right befor the column_left.php is called in the default.php change the fist one to cellspacing="0"

[/code]

Posted

yeh I was just gonna say that.

 

Ok, I have the boxes together, head to toe if you like, now I guess I just use something like this in all my pages to put it together:

 

<!-- body //-->

<table border="0" width="100%" cellspacing="0" cellpadding="3" align="center" bgcolor="#FFFFFF">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top" bgcolor="#FFFFFF" background="images/left_col_bg.gif"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

 

Would this be right in ppl's estimations??

 

CC.

  • 3 years later...
Posted

This is a very old topic I found when trying to find a way to get rid of the cellspacing between boxes in both my left and right columns and have an entire column instead.

 

As CC did, I changed the cellspacing in default.php and nothing happens. I also made de modification SW suggested, same result.

 

From the topic I can?t realize if CC made the suggested changes (</td>, </tr> and <br /> tags included ) all together or simply changed the script with the one she posts at the end, but I guess there must be a different way to get rid of this cellspacing other than including this style specification in the default.php file.

 

Does someone know how to do it?

 

Thanks.

Posted

I didn't read the whole thread, but you want to remove the gaps that are between each box, correct? So that the left column/right column are really "columns" instead of individual boxes?

 

It's the cellpadding. You need to edit all of your catalog pages (all of the files in the root ...index, product_info, shopping_cart, reviews, etc, etc ...about 40 files.

 

If you have a text editor with a find/replace in files function...that would work. Just make backups ;)

 

If you have both columns, then it's in 2 places in each file

 

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

 

Change the cellpadding to cellpadding="0".

 

Then for the right column,

 

td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

 

Again, cellpadding = "0".

 

Just try that on one page and see if it's what you want.

Posted

Thank you Mark, I had been looking for that for years!!!!!!

 

Certainly this is what I would like to have, a "real"column. I will follow all these steps and let you know how it works afterwards.

 

Thanks again.

Posted

Mark, you are a genious. It worked simply perfect!!! :thumbsup: :thumbsup: :thumbsup:

 

Thanks bunches again.

  • 1 year later...
Posted
Mark, you are a genious. It worked simply perfect!!! :thumbsup: :thumbsup: :thumbsup:

 

Thanks bunches again.

Ditto

 

Thanks Mark for a simple clear explaination for this. :thumbsup:

 

Julie

Archived

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

×
×
  • Create New...