Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with width of the catalog


lorax

Recommended Posts

I've wrapped the store code (everything between the body tags) in a DIV tag which has a width of 740px. The RH column sticks out about 20px. It seems that something within the main area is holding it out there but all the widths show 100% - which means they should adapt to the new width.

 

I've used this DIV technique on two other sites so I know it works but I can't seem to find what's messing with the width. Does someone have a ready answer or lead for me to follow? TIA.

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

Well - I found a work around but I don't like the answer. I had a padding on my DIV which was part of the problem. I ended up having to expand the width of the DIV to 760px to accommodate the tables. Still wish I knew what was forcing that width. :cry:

Apathy is a dominant gene - mutate.

Link to comment
Share on other sites

I usually look at the page in Mozilla Composer to figure out which table tag is causing the problem. You could also try a view source with a search for 760.

 

I would have tried one of these, but I don't see a site link in your post nor a www link to try.

 

Hth,

Matt

Link to comment
Share on other sites

Playing around with the page with Composer, I found that if I restricted it more (say to 700), it would shrink correctly. It seems that the problem was caused by the span section in the following line:

define('TEXT_MAIN', '<span class="messageStackSuccess">This is a default setup of the osCommerce project...</span>');

which is part of the default text. IIRC, there is a CSS option to control this (so it doesn't automatically assume that the span should override the table width parameters). However, the simplest thing is probably just to not use spans in your actual text or to manually specify that it should go to the next line.

 

Hth,

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...