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

inconsistency between Firefox and IE7 with non-existent space

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-20-2010, 12:52 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default inconsistency between Firefox and IE7 with non-existent space

This is a purely CSS question, regardless of xcart.

I have a problem with an inconsistency between Firefox and IE7 (and I guess IE8 as well, but I haven't checked it) regarding a page in my test site with url: http://www.zoomseri.temporaryurl.biz/home.php?display_cats=Y
Specifically, the vertical distance of the breadcrumbs links (i.e. "Zoomserie" breadcrumb link in that particular page) from the upper 2-rounded corner main part of the page is much greater in IE7 than in Firefox (see attached image, the red double-arrowhead line depicts the distance under discussion).

Actually if you check the page with Firebug, you will see that there are 2 divs inside the "center" div which is the central part of the page (which includes the left, one-link navigation menu and the central part with the root categories, sorry the language is in Greek but that should not be an issue for the current post). These div's are namely, "topban" and "center-main". Now, inside the "center-main" div there is the "location" div among other, which displays the breadcrumbs links. Both "topban" and "center-main" divs have 0 top and bottom margins. Firefox displays the layout correctly, but IE7 adds a non-existent vertical space above the location link. The link should be positioned where the "topban" div with the 2 rounded corners finishes. I know that IE generally is the main culprit in CSS rendering, but I was wondering if there is any css hack.

Appreciate any tips.
Reply With Quote
  #2  
Old 04-20-2010, 03:48 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: inconsistency between Firefox and IE7 with non-existent space

div id=location
has margin-top=40px in IE
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-21-2010, 01:18 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default Re: inconsistency between Firefox and IE7 with non-existent space

Steve, where do you see this 40px top margin, because I have set it to 0px. I can check it in Firebug as well that it is 0px (both in 'Style' and 'Computed' tab of Firebug).
Reply With Quote
  #4  
Old 04-21-2010, 02:30 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default Re: inconsistency between Firefox and IE7 with non-existent space

ok Steve, I fixed it. With your reply, I got the chance to install IE Developer Toolbar, I didn't know that there was such a tool for IE (I do most of the work in Firefox and I just check the sites in IE when I finish each stage), and I traced the 40 px top-margin in the main_vas.IE7.css style sheet. I couldn't trace that from Firebug, since this top-margin is located in another style sheet which is rendered only when IE is the browser. (a IE7 specific style sheet)
thanks for the help
Reply With Quote
  #5  
Old 04-21-2010, 03:48 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: inconsistency between Firefox and IE7 with non-existent space

Good work. That's how I found it in the first place. IE Dev Toolbar is a joke compare to Firebug but at least gives some idea whats going on in IE
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
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 12:53 PM.

   

 
X-Cart forums © 2001-2020