different browser -> different visualization!

Author Message

Alessandro Cipriani

Monday 16 February 2004 7:46:27 am

hi all
i'm creating a site based on the corporate template
i'm working with ie 6.0 and everything's ok
but when i visit my site with ie 5.5 or 5.0 my site isn't displayed properly! is it a way to display the site in the same way on various browser? i mean all the ie family but also linux/unix browser (mozilla, conqueror ecc...)
i'v seen into the ezpublish homepage html a javascript with a selection between ie and ie6... is that the key to the problem? should I load different css?

regards
alessandro

Alex Jones

Monday 16 February 2004 8:06:36 am

Alessandro, there are many answers to your questions, in fact there have been massive arguments over the differences. The two most common solutions to the problem is to employ the box model hack (http://www.tantek.com/CSS/Examples/boxmodelhack.html) or, as you mention to load different CSS files depending on the browser.

But, more important than either solution is to clean up your CSS to the point that you may not need to have separate style sheets to account for different browser/platform combinations. While this is not always possible, it is a good goal as it should make your site forward-compatible, cutting down on (re)development down the line. The problems you are experiencing might be solved with a few tweaks to your CSS, which would be much better than adding a hack or browser-sniffing code. If you are using a template that came with eZ publish, look around the forums for some of the solutions already posted to content being shoved to the bottom of a page.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.