Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Why don't all browsers just start displaying the same thing!!!???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-15-2009, 03:08 PM
 
jwilkers jwilkers is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 93
 

Default CSS differences FF and IE

Ok,

Just started playing around with 4.2 in a new directory and have started tweaking the left-bar

I set up a .gif to display in the title bar instead of text, with 1px of margin around the graphic. Looks great in FF, but in IE7, there is an extra pixel above the image.

Also, I set up some bullets for the category links in the categories list, but the bullets are not at the same height in relation to the links from FF to IE7. The IE7 ones are slightly higher.
- I ran into this problem with my live site, and had to live with the slight difference, but the
difference is greater in this implementation.

I have tried analyzing the .css using IE Developer toolbar, but can't figure it out.

http://www.64.255.11.132/shop
__________________
JW - Xcart Version: several
dragged one cart's database kicking and screaming from 4.0.16 to 4.4.1.
Reply With Quote
  #2  
Old 04-15-2009, 03:50 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Why don't all browsers just start displaying the same thing!!!???

Welcome to the world of cross-browser compliance. IE has always had mysterious '1px' glitches, float issues, line spacing issues, etc. That's why there is a separate stylesheet for it. Blame it on IE, they just can't create a standards compliant browser - IE8 is just as bad as 7.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-15-2009, 03:55 PM
 
jwilkers jwilkers is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 93
 

Default Re: Why don't all browsers just start displaying the same thing!!!???

so, should I try to make separate entries for the applicable css in the IE7 css file?
__________________
JW - Xcart Version: several
dragged one cart's database kicking and screaming from 4.0.16 to 4.4.1.
Reply With Quote
  #4  
Old 04-15-2009, 03:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Why don't all browsers just start displaying the same thing!!!???

Yes, google IE and margins and you'll find some hacks
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-15-2009, 05:25 PM
 
jwilkers jwilkers is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 93
 

Default Re: Why don't all browsers just start displaying the same thing!!!???

Can't seem to find one to get rid of that ONE darn pixel.

tried putting in the same css for the title bar into the ie7 css and just tinkering with the margins, but IE7 just won't give up..

ridiculous that browser even exists

I've spent close to 4 HOURS today on 1 pixel!!!

Very expensive pixel
__________________
JW - Xcart Version: several
dragged one cart's database kicking and screaming from 4.0.16 to 4.4.1.
Reply With Quote
  #6  
Old 04-15-2009, 05:50 PM
 
jwilkers jwilkers is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 93
 

Default Re: Why don't all browsers just start displaying the same thing!!!???

Most of the day on this and I just fixed it....

I was doing a bottom border only on the title bar as a bottom "box" divider. I took that out, and changed it to a top border on the content box below it and whammy.

works in FF and IE.

ARRRRRRRRGHHHHH
__________________
JW - Xcart Version: several
dragged one cart's database kicking and screaming from 4.0.16 to 4.4.1.
Reply With Quote
  #7  
Old 04-15-2009, 06:23 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Why don't all browsers just start displaying the same thing!!!???

Sometimes you have to wrap you images in <div> tags to get them the same.
__________________
xcart 5.1.2
Reply With Quote
  #8  
Old 04-15-2009, 06:38 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Why don't all browsers just start displaying the same thing!!!???

You might also get in the habit of normalizing all the css settings to something that is familiar to you, essentially taking over any css that is default - which can vary from browser to browser: See this for example
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote

The following user thanks gb2world for this useful post:
carpeperdiem (04-15-2009)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:09 AM.

   

 
X-Cart forums © 2001-2020