Zen Cart Logo
Forums / General Questions / weird display effect

weird display effect

Views: 640

Results 1 to 5 of 5
19 May 2011, 5:21 PM
#1
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

weird display effect

The Shopping Cart content table heading layout changes when total spend changes from<£10 (4 characters) to >=£10 (5 characters)
Both IE and FF display this effect.

Try visiting http://www.freight-stop-shop.co.uk/tickets/

Go to General tickets and add 3 child tickets (actual date is unimportant but required)
Notice the location of the heading text 'Ticket Type'.
Now use the change quantity button and change to 4 tickets.

Notice how the position of the 'Ticket Type' heading text moves across to the left:blink::blink:

Now I have tried looking at the CSS with FF debug tool - I cannot see any difference, I have also compared the source code for the served pages - cannot spot any difference.

Has any one seen this before or are my eyes going funny?:blink::blink:

19 May 2011, 5:42 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: weird display effect

I can handle making a dummy account to make a test add to cart, but it still needs approval...

19 May 2011, 6:00 PM
#3
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: weird display effect

approved test/test I'll leave it active for a few days - but be warned PayPal is active

19 May 2011, 7:33 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: weird display effect

That effect (the columns shifting a hair when the total changes) is due to the auto-sized table columns. They take up no more width than each of them needs, with the attribute list being a block element that tries to be full width. When the numbers get larger, they take more width from the attribute list.

If you don't want this shifting, add to your stylesheet and give fixed widths to
.cartUnitDisplay {}
and
.cartTotalDisplay {}

19 May 2011, 7:40 PM
#5
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: weird display effect

thanks for clarifying that