Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Website Design/Showcase (http://www.chiefdelphi.com/forums/forumdisplay.php?f=64)
-   -   Website Resolution for Awards? (http://www.chiefdelphi.com/forums/showthread.php?t=23938)

deltacoder1020 11-02-2004 11:09

Re: Website Resolution for Awards?
 
Quote:

Originally Posted by jonathan lall
This is because of the different interpretations of the HTML element box model. For example, one browser may put the border within the (block) element's space and another may put it outside. IE's box model interpretation is flawed in a few areas, even in standards mode. You could serve seperate stylesheets, but there are many other ways of getting around these problems, no? Truth be told, when the two browsers differ, chances are (by a huge margin) Mozilla's doing it right and IE isn't.


This isn't completely the case here. Mozilla (and IE6 to some extent) has support for the W3C DOM; both layers and all are the wrong way to go. You are absolutely correct in your assertion about layers' and all's differing interpretations to be extremely counter-intuitive (aaaaaaaaagh!), but there are ways around this in many cases with the DOM. Of course, I try not to use JavaScript at all, because quirks like the ones you mention really bug me.

Quite right. Also, the statement before of "IE implements CSS more fully" is incorrect - it adds to the standard, making it non-standard. For instance, it applies the "height" attribute to just about all box tags, although the W3C standards actually lay out which tags should have it applied. Mozilla, on the other hand, follows the standard, applying the attribute only to the correct tags. Thus, some people write folding-menu scripts that use the CSS height attribute, and then complain when they don't work in any browser except IE.

I tend to only use basic javascript to complement a PHP backend, such as to provide a comfirmation box, et cetera.

HFWang 13-02-2004 03:05

Re: Website Resolution for Awards?
 
Quote:

Originally Posted by jonathan lall
This is because of the different interpretations of the HTML element box model. For example, one browser may put the border within the (block) element's space and another may put it outside. IE's box model interpretation is flawed in a few areas, even in standards mode. You could serve seperate stylesheets, but there are many other ways of getting around these problems, no? Truth be told, when the two browsers differ, chances are (by a huge margin) Mozilla's doing it right and IE isn't.

Its not a chances are thing at all. IE will do it wrong if you don't have a doctype. It is practically criminal to maintain two seperate stylesheets because of something this trivial... :X

Using javascript for basic layout is just really bad practice in general. Use javascript for things that are actually dynamic. Oh, and using standard DOM would make your life much easier too...


All times are GMT -5. The time now is 00:38.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi