Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

trouble with box width


Pantera

Recommended Posts

Posted

Some months ago I used to configure my left column width to 135 pixels, changing /includes/application_top.php.

But now I returned to 125 pixels, and when my page loads, in the first 1 ou 2 seconds, the left column width is still 135, then it changes to 125.

 

What can be happening? Maybe there is another file with reference to the width of columns?

My site is http://xadrezshop.com (pay attention to the first 2 seconds in column left, reload if necessary).

 

thanks a lot!

Posted

Check your application_top code again.

 

Your HTML source tells me it's not changed, or not changed correctly:

 

<!-- categories //-->
	  <table border="0" cellpadding="2" cellspacing="0" width="125">
<!-- left_navigation //-->

: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

thanks for the answer, Germ!

I looked again to application top, and there is:

 

define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

 

There is 125, but something is interfering when the page loads.

I did not understand well your answer, what is not changed?

Posted

There's your answer.

 

It's 125 because that's what the code is tellling it.

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

The problem is that the column still shows 135 during 2 seconds when the page loads, that is the problem.

The configuration is correct, a width of 125 pixels, but I don't understand why the difference during the first 2 seconds of loading the page.

Posted

did you clear your browser of cookies???

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Posted

Lo siento.

:blush:

 

I misunderstood the problem.

 

It doesn't do that if you look at your site using Firefox.

 

I've seen other sites do that, but I don't have a clue why.

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

I did discover the problem!

Some time ago I created 2 more box, and include an image in each of it. In the image tag I did not include the references for width and height, and that was causing the distortion of the box in the moment the page was loading.

 

Just including the references width="100" height="100" (or the size of your image), and the problem is solved!

 

thanks everybody!

Archived

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

×
×
  • Create New...