As I completed my recent website redesign, I came across a strange CSS bug in IE6/Win. I see similar bugs in IE5 and 5.5 all the time, but this is a first for me in IE6. The background color for my <h2>
tag disappears on the first visible instance of it. The text is there, as well as the padding and margins. Only the background disappears. As far as it being visible, I had hoped to apply an invisible <h2>
tag right above the first, but to no avail.
<h2 style="display:none;"></h2>
As we all know, there will be no more updates to IE/Win until Longhorn is released in the 2005–2006 timeframe. Mainstream use of this OS is not anticipated until circa 2008. I’m open to suggestions on how to workaround this bug. Mozilla 1.4 and Opera 7.11 don’t seem to be affected. Gotta love that IE…
To quote some of the other Coding Forums members, “IE, you are the weakest link. Goodbye.”
One of the cooler things I did in this version is begin to use PHP more liberally. As I’ve come to understand it more, I’ve realized that it’s really similar to JavaScript in syntax and thought. I like it.
A few years ago, I would use JavaScript libraries to draw my layouts to the screen. The most obvious drawback, of course, is the fact that JavaScript is a client-side language. With PHP, I can do (and do do) the same thing, except when you look at the source, it looks like normal HTML. Therefore, it processes just like HTML, and I don’t have to worry (very much) about browser JavaScript compatibility issues. If I want to change part of the layout, I just modify the code in a single PHP file, and voila!
I love the web.