ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Issues with Chrome
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Issues with Chrome

 Post Reply Post Reply
Author
Message
GreggS View Drop Down
Groupie
Groupie


Joined: 06-February-2012
Location: New Jersey
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote GreggS Quote  Post ReplyReply Direct Link To This Post Topic: Issues with Chrome
    Posted: 19-February-2014 at 5:25pm
In our office we mainly use IE and Firefox and rarely use Chrome.  We just noticed in Chrome on some products that have cross selling products it extends into the right column.
http://www.1st-line.com/store/pc/viewPrd.asp?idproduct=7163
In IE and Firefox it works ok.

I noticed that Chrome doesn't like percents when sizing.  For example
http://www.1st-line.com/store/pc/Test-Page-d194.htm
the image on this page is 1024px x 1024px.  It is sized to 100% by 100%.  It looks ok in IE and Firefox (they both scale the image to 588px x 588px).  In Chrome it stretches the image.

What we tried to do to fix the problem above was change the width of .pcShowContent in pcStorefront.css from 100% to 590px.  It fixed that issue but then other pages went off balance in all 3 browsers like the login page and the one page checkout page.

Does anyone have similar issues with Chrome or know of a happy medium between all browsers?
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 19-February-2014 at 10:22pm
Hi Gregg,

I find Chrome to be the most W3C compliant on such issues, but perhaps less forgiving on doing "what I meant rather than what I said", if you will. You'll also do better using CSS rather than old school HTML size attributes on elements.

First of all, your product pages are blowing up in Chrome because the left and right columns on your product page are set to 20% and 80% (image column on the left; description etc. on the right); however your products images are far beyond 20% of the width of the div this table it set in.

This is all stock PC markup and CSS you're running now.

To remedy this, remove the width="80%" HTML attribute on that right column, so it will scale naturally (viewPrdL.asp).

As for your test page, pretty much the same idea. It's much better to use CSS rather than HTML attributes. Remove your HTML width & height attributes and replace with style="width:100%;". The height will scale naturally by aspect ratio; you don't need or want to set it explicitly.

Fortunately, v5 will be getting rid of all of this old school HTML markup, esp. vis a vis tables and updating to contemporary markup & styling.
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post Posted: 21-February-2014 at 8:26pm
One thing you can do is set the images to:

max-width: 100%;

Then they won't be any wider than their container.
Back to Top
GreggS View Drop Down
Groupie
Groupie


Joined: 06-February-2012
Location: New Jersey
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote GreggS Quote  Post ReplyReply Direct Link To This Post Posted: 19-March-2014 at 12:00pm
Thanks for tip.  I've started redoing all images with styles now.

On the back end we have been trying to update to 4.7 from 4.6.  It's tedious with all the custom code we have right now.  We have an issue in the bto configuration pages extending past to screen.

http://www.1st-line.com/store/pc/configurePrd.asp?idproduct=4610

I went into configurePrd.asp and tried getting rid of all the width="" and all the nowrap.   I also tried getting rid of all of the ones in configurePrdCode.asp.  I didn't see anything in pcStorefront.css except the pcBTOmainTable width: 100%;.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.