OK ... as there is some confusion in what I ask:
I was invited to work on an almost completed project.
No templates.
There are over 100 pages, manual coding and an impending deadline. Here is some actual HTML / CSS code written by the last guy (not described above):
<div class="block four-col-1 gold black-bg"> <h1>Self Managed Super</h1> <a class="highlight" href="#"><span class="left bottom"> <strong><span class="text-white">Bolster your<br /> portfolio</span><br /></strong> with unique<br /> investment<br /> options</span> <img src="/AU/individuals/_images/superannuation-2.png" alt="" /></a> </div> <div class="block four-col-1 grey-light black-bg"> <h1>Self Managed Super</h1> <a class="highlight" href="#"><span class="left bottom"> <strong><span class="text-white">Financial <br /> flexibility,</span></strong> <br /> into and <br /> throughout <br /> retirement </span> <img src="/AU/individuals/_images/superannuation-3.png" alt="" /></a> </div>
and here are some of the relevant CSS:
.block .highlight {display:block;position:relative;height:auto;min-height:110px;-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;} .block .highlight:hover {border:1px solid #ddd;} .block .bottom {position:absolute;font-size:11px;line-height:12px; bottom:10px;letter-spacing:-0.2px; } .block .left {float:left;font-size:11px;margin-left:8px;width:75%;} .block.black-bg p, .block.black-bg p * {color:#828282;} .block.black-bg p * span.text-white {color:#fff;} .block img {position:absolute;bottom:0;right:1px;z-index:0} .block .highlight img {position:absolute;bottom:0;right:0px;z-index:0} .highlight:hover {opacity: .75; filter: alpha(opacity=75); -ms-filter: "alpha(opacity=75)";-khtml-opacity: .75;-moz-opacity: .75; overflow:visible;} .content .block.black-light.highlight, .block.black-light .highlight, .block.black-light .block-inner {background:url(/AU/_images/system/block-black-light.gif) no-repeat top left;} .content .block.grey-light.highlight, .block.grey-light .highlight, .block.grey-light .block-inner {background:url(/AU/_images/system/block-grey-light.gif) no-repeat top left;} .content .block.orange.highlight, .block.orange .highlight, .block.orange .block-inner {background:url(/AU/_images/system/block-orange.gif) no-repeat top left;} .content .block.gold.highlight, .block.gold .highlight, .block.gold .block-inner {background:url(/AU/_images/system/block-gold.gif) no-repeat top left;} .content .block.blue-light.highlight, .block.blue-light .highlight, .block.blue-light .block-inner {background:url(/AU/_images/system/block-blue-light.gif) no-repeat top left;} .content .block.blue-dark.highlight, .block.blue-dark .highlight, .block.blue-dark .block-inner {background:url(/AU/_images/system/block-blue-dark.gif) no-repeat top left;} .content .block.black-light.black-bg.highlight, .block.black-light.black-bg .highlight, .block.black-light.black-bg .block-inner {background:url(/AU/_images/system/black-block-black-light.gif) no-repeat top left;} .content .block.grey-light.black-bg.highlight, .block.grey-light.black-bg .highlight, .block.grey-light.black-bg .block-inner {background:url(/AU/_images/system/black-block-grey-light.gif) no-repeat top left;} .content .block.orange.black-bg.highlight.block.orange.black-bg .highlight, .block.orange.black-bg .block-inner {background:url(/AU/_images/system/black-block-orange.gif) no-repeat top left;} .content .block.gold.black-bg.highlight, .block.gold.black-bg .highlight, .block.gold.black-bg .block-inner {background:url(/AU/_images/system/black-block-gold.gif) no-repeat top left;} .content .block.blue-light.black-bg.highlight, .block.blue-light.black-bg .highlight, .block.blue-light.black-bg .block-inner {background:url(/AU/_images/system/black-block-blue-light.gif) no-repeat top left;} .content .block.blue-dark.black-bg.highlight, .block.blue-dark.black-bg .highlight, .block.blue-dark.black-bg .block-inner {background:url(/AU/_images/system/black-block-blue-dark.gif) no-repeat top left;}
(The code, in fact, is exactly the same as he wrote, in all its unformatted, disgusting beauty.)
If you are worried about reading all of this (and most of you probably can't - hence my abbreviations above), you will see that while some classes are unique and not conflicting, some do. As a result, some of the blocks that are expected to be balck in EI6 are blue, and the fields in EI6 are often erroneous, and absolutely positioned images also break especially in combination with PNGFix IE so that they look transparent as expected.
In addition, due to the nature of the deadlines, suppose moving to each of the 100+ pages and editing HTML is no longer an option. This was my recommendation from the first day, and the client agreed that what they have is good and really less than ideal, they also work in a short time.
This leaves only two options for editing. Change the CSS so that it works in all browsers (as it is called on each page) or generates Javascript (again, this can be called on each page using include) to do something with HTML on every page of the site, or what something else complicated. Changing the code on the included pages is easy, there is no HTML change in each of the blocks in question.
I fully understand that everyone is still commenting, and thanks for these ... they were my initial decisions in both cases, and I would not be here if they were an option.
Thanks to everyone who read this, but I'm really trying to find some super complicated solution for the whole problem of non-chaining classes in IE6. potentially for wider use than this project. However, I only have 5 working days to find the answer before the end of my contract, so if we do not, we just hack into the IE6 stylesheet, which will make all the blocks in one way in this browser and leave it on that. I would rather find a one-stop solution, but ... meh. I hope that after 18 months the user base of IE6 will be so low that this is no longer a problem.
Thanks to everyone.
Greetings
Mike.