Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Browser Compatibility Differences

Browser Compatibility Differences

Locked

Views: 744

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Nov 2010, 2:25 PM
#1
designlessdesign avatar

designlessdesign

New Zenner

Join Date:
Mar 2010
Posts:
19
Plugin Contributions:
0

Browser Compatibility Differences

Hello All,

I have created a website for my company and have already gone live, even though I know I have one slight issue.

The problem is that the shopping cart looks great in firefox and internet explorer but for some reason is padded to the right of my tpl header and footer. I've tried playing with the different css values but nothing seems to make a difference to the safari browser without skewing the firefox and IE look.

I understand that I probably won't get many hits on this post because not everyone has Safari but I'm hoping that sombody will have encountered this problem before.

Check out my website here Computech Systems Catalog

11 Nov 2010, 2:36 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: Browser Compatibility Differences

This might help....

http://www.sitepoint.com/forums//showthread.php?t=487888

I know that this post is already ancient, but in case anyone is having the same problem and finding this via Google search, I would say...

It's all about line-height. Set a line height for whatever it is you want to match padding on and that will usually kick all of the browsers into shape.

Doron

~Melanie

11 Nov 2010, 2:37 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Browser Compatibility Differences

Styling differences especially between two standards-compliant browsers like FF and Safari often are due to different error handling. Fix the HTML errors and see what happens:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.computechracing.com%2Fcatalog%2Findex.php

(I don't have Safari, so don't know how they display differently.)

11 Nov 2010, 2:40 PM
#4
designlessdesign avatar

designlessdesign

New Zenner

Join Date:
Mar 2010
Posts:
19
Plugin Contributions:
0

Re: Browser Compatibility Differences

Here is a pic of the firefox that works correctly

http://www.computechracing.com/images/probFirefox.jpg

Here is a pic of the Safari that has the problem

http://www.computechracing.com/images/probSafari.jpg
11 Nov 2010, 4:12 PM
#5
designlessdesign avatar

designlessdesign

New Zenner

Join Date:
Mar 2010
Posts:
19
Plugin Contributions:
0

Re: Browser Compatibility Differences

Issue has been fixed.

To all that were curious. I had a padding-top of 3px applied to the spry menu bar container that was originally 2px. It was originally 2px because I designed it using safari and looked good but when I checked it out on IE I had to add an extra pixel of padding to allow the spry menu to align into my background image correctly.

The issue was that the container that held the header was x amount tall and adding that extra pixel created an overflow and caused the shopping cart container to shift to the right of the overflow. Keeping the extra pixel to the padding and increasing the header container by 1px allowed a smooth solution.:clap: