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

IE vs Mozilla and Opera

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-03-2006, 06:14 AM
 
tron tron is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: Oslo
Posts: 46
 

Default IE vs Mozilla and Opera

Hi,

using IE for designing the site and it looks like I want it to look.

I had a big surprise today when I installed the new Mozilla 2.0 browser.

dialog box colors does not work and my fancy category color are gone.

Also my home.tpl looks messed up.

Then I installed Opera to check there and it was even worse.

What do I do here. any easy work arounds or tricks.

here is my website adress : www.tribaltrax.com
__________________
4.0.17

fancy cat.
aom
sns
Reply With Quote
  #2  
Old 10-03-2006, 06:22 AM
 
balinor balinor is offline
 

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

Default Re: IE vs Mozilla and Opera

No tricks, you just need to design using W3C compliant code. You have 57 errors and 946 errors on the home page alone...I'm surprised it even works in IE. I'd start by running the site through a validator and start fixing the errors one by one. Here's a good one to use:

http://validator.w3.org/
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-03-2006, 07:04 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: IE vs Mozilla and Opera

Don't forget about Safari and the mac browsers (Firefox and Opera).

You really have to test on 6 browsers if you want basic compatibility -- and since you're a music site, you gotta assume many creatives will use a mac.

And I don't have good news for you -- your Fancy Cats don't render well on Safari...

Good luck.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 10-03-2006, 07:28 AM
 
tron tron is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: Oslo
Posts: 46
 

Default Re: IE vs Mozilla and Opera

Quote:
Originally Posted by balinor
No tricks, you just need to design using W3C compliant code. You have 57 errors and 946 errors on the home page alone...I'm surprised it even works in IE. I'd start by running the site through a validator and start fixing the errors one by one. Here's a good one to use:

http://validator.w3.org/


I got report from this site. but where do I start.

It says "Error Line 30, column 17"

What templates do I edit.
__________________
4.0.17

fancy cat.
aom
sns
Reply With Quote
  #5  
Old 10-03-2006, 07:38 AM
 
balinor balinor is offline
 

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

Default Re: IE vs Mozilla and Opera

Well, it is a huge job. You need to first figure out what line of code it is, and then find that code and fix it. I'm not just talking about those kind of Errors, I'm talking about the <form> inside a <table> errors, missing closing tags, etc. Perhaps you should hire someone to do this for you?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 10-03-2006, 08:03 AM
 
tron tron is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: Oslo
Posts: 46
 

Default Re: IE vs Mozilla and Opera

Quote:
Originally Posted by balinor
Well, it is a huge job. You need to first figure out what line of code it is, and then find that code and fix it. I'm not just talking about those kind of Errors, I'm talking about the <form> inside a <table> errors, missing closing tags, etc. Perhaps you should hire someone to do this for you?

Or maybe upgrade / install a fresh version 4.1.1 of X-cart and then move over the modifications I have done to the templates one by one.
__________________
4.0.17

fancy cat.
aom
sns
Reply With Quote
  #7  
Old 10-03-2006, 08:12 AM
 
balinor balinor is offline
 

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

Default Re: IE vs Mozilla and Opera

Well, 4.1 is not compatible with 4.0, so you would need to upgrade in order to migrate your product, customer and order data.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 10-03-2006, 03:45 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: IE vs Mozilla and Opera

What I did with my site (started with firefox, and the only thing I found that was incompatible was IE6-) was to use a conditional comment that only IE reads, ie:
Code:
<!--[if IE lt 7]> <LINK REL=StyleSheet HREF="IE-skin.css" TYPE="text/css"> <![endif]-->
That would go right under the skin1.css (designed around firefox) link in the customer/home.tpl .

What happens is that the site should load the corresponding style sheet. This does mean you will need to design your site twice to get the same look cross browser. What I have found is that if you design for firefox, it will look similar, but not exact, to opera and safari. I havent tested out IE7 yet and the only mac browser I tested was safari (only through screenshots).

One trick I used for designing for IE, and im sure you can use it vice versa, is to place borders around certain elements by using "border: 2px dashed #33ff00;" (you can use any type of border you want, this is just an example). Although, once you get everything in place and remove the borders, you may have to move the element by 2-4px because of the border that was placed.

The alternative option is to use tables for placement of everything.
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #9  
Old 12-03-2006, 12:12 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: IE vs Mozilla and Opera

i'm glad i found this post!

i was having similar issues. my host (handsonwebhosting) pointed out that my images were wrapping and screwed up in firefox and indeed they were. i sliced the images so they'd load faster and i could technically get away with using larger ones but i didn't properly adjust rectangle_top.tpl.

clearly i soooooooo forgot to do crossbrowser compatibility after editing skin1. someone should make a sticky post reminding *special* people such as myself to do this whenever major site revisions are made.

luckily, mine was an easy fix and unfortunately, now i have to visit the link balinor suggested and clean up the code...284 errors? GOSH!

my only problem left is IE7. HATED IT! and uninstalled it immediately. now my fear is that i have to periodically install/unistall their crappy software. it'd be tolerable if it didn't adjust the font in my browser AND my PC as a whole.

sorry...maybe this is a rant?

i do have a question though, i see where the errors are but is there a better/easier way to pinpoint which file contains the errors?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #10  
Old 12-06-2006, 12:37 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: IE vs Mozilla and Opera

use the validate by file upload
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
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 03:30 PM.

   

 
X-Cart forums © 2001-2020