monksnake said:
Over time, you get to realize what hacks can be avoided and how to avoid them, "best" practice is to avoid as many as you can.
Thank you for supporting my position!
Over time, the experienced runner on the crazy track knows how to avoid breaking his ankle in the potholes, getting spitted on the protruding-javelin-section, or smashing into the invisible wall. We agree! Cool!
In the meantime, I think you are overstating the case:
monksnake said:
Just because a layout is valid doesn't mean it's the best written layout.
One moment, you're defining
best as the most efficient, as in your javascript example. But the kind of
best that the discussion is about is web design, in which case it seems you're arguing the best is simply avoiding IE's bugs! I would have thought it was "best design principles of HTML document structure and layout." What I'm claiming that IE is preventing me from using the
best design! One has to use
sub-optimal design to work around its problems.
Let me give you a scenario and you can criticize it to show me how it is "not the
best despite being valid." And then give the superior,
best layout.
<DIV style="font-family: Arial">
<DIV style="float:left; width:200px; border: 1px solid black; background-color:#DDEEFF">magnus es, domine, et laudabilis valde. magna virtus tua et sapientiae tuae non est numerus.</DIV>
<P style="margin-left: 200px;">et laudare te vult homo, aliqua portio creaturae tuae, et homo circumferens mortalitatem suam, circumferens testimonium peccati sui et testimonium quia superbis resistis; et tamen laudare te vult homo, aliqua portio creaturae tuae. tu excitas ut laudare te delectet, quia fecisti nos ad te et inquietum est cor nostrum donec requiescat in te. da mihi, domine, scire et intellegere utrum sit prius invocare te an laudare te, et scire te prius sit an invocare te. sed quis te invocat nesciens te? aliud enim pro alio potest invocare nesciens. an potius invocaris ut sciaris? quomodo autem invocabunt, in quem non crediderunt? aut quomodo credent sine praedicante? et laudabunt dominum qui requirunt eum: quaerentes enim inveniunt eum et invenientes laudabunt eum. quaeram te, domine, invocans te et invocem te credens in te: praedicatus enim es nobis. invocat te, domine, fides mea, quam dedisti mihi, quam inspirasti mihi per humanitatem filii tui, per ministerium praedicatoris tui.</P>
</DIV>
There you go. The three-pixel margin bug in IE. The text should touch the box, it does not. You can see where the text extends below the box that it shifts to the left.
Can you show me a better way to get the same result. If so, you still have to argue that this layout can NEVER be the best layout for any desired design, since disproving one case doesn't disprove every case.