Disappearing text in IE 6 Fixed, Thanks Jason

So with some gracious help from Jason Lefkowitz, I’ve fixed the IE 6 problem noted below.

Just so you know what it was in case you don’t think to yourself, “Self, instead of spending two hours on this, I’m going to spend 15 minutes putting in a two-column table and be done with it,” I outline the problem and solution here.

The problem is if you have a div floated over another, and only in IE 6. If the div that is floated over has a background-color, that background color will cover everything in that non-floated div until IE is forced to redraw the screen (such as by covering it with another window or selecting the invisible text).

The solution is to take the background-color out.

Jason points out that this is Bill Gates’s fault, not WaSP or Zeldman’s. Technically, no, but here’s a case where I was on several other deadlines, and this weird issue comes up and sucks up two hours of my day as I debug it. Now, debugging is part of life, but a quick solution would have been to take the two columns of layout and plunk them in two table cells. That would have taken me 15 minutes to restructure the page and test in the applicable browsers.

Given the structure of the code it actually would have been the same on assistive devices, though a cell phone might have had more problems with it. Still, if we get sufficient cell phone traffic, I’ll just put up a WML version of the relevant information. So far, nary a one has been identified.

In this case, I didn’t even care what the thing looked like in NS 4, I just wanted it to work in IE 6 and Mozilla. That’s it, really, all I cared about. But doing it the “right” way cost me time I didn’t have.

The reason I spent it? Because that was how the code had been conceived originally, and I wanted to stay true to that. Also Jason helped, which basically goaded me into not just giving up on it. Had he not, there’d be one more table in existence today.

So — my problem is not with “Standards” per se, but rather unreasonable application of them when the tradeoffs just don’t work in their favor. Don’t expect to see me often going to these lengths. When in doubt, I will go with what works for the vast majority of my audience and keep my projects from going over budget.

When the browser market is such that doing away with tables for layout is more efficient, I will happily do so. It’s just not there yet, pace Zeldman.

5 thoughts on “Disappearing text in IE 6 Fixed, Thanks Jason

  1. Thanks again for fixing it, Sandy. I’m sorry you wasted a big part of your evening on it. You really saved my ass, though, for real. I owe you one (though I don’t really know what I could do to help you at work! Besides stopping the badger-badger-badgering…)

    Like

  2. True tables would have been faster. I’m beginning to think we’re not ready to compare table layouts vs css layouts in terms of effectiveness. Old style HTML table layouts have been worked out to death and the bugs are known. Seems like CSS layouts are still beta and require new bug fixes (in browsers) or discovering new hacks (in css) to make them work the way we want them to.
    If you want to be efficient for paying clients, tables are the way to go today but we need to get CSS working better for tomorrow (when we can resell them an update to their design). Anyway, not sure why I posted except to get another link to my blog from yours.

    Like

  3. DNC Cred Update

    Just heard from the DNCC – they’ve changed our perimiter credentials to hall credentials. Yet they still had no room for Bill. As an aside, I think I fixed the disappearing text problem. Let me know if everything is copacetic…

    Like

  4. This was a huge help. I had been struggling with this issue for 1.5 days and was ready to pull all my hair out.

    Now to tackle my other IE issue. . .

    Like

Comments are closed.