I’m making an XHTML page template and validating it agains W3C’s HTML and CSS validators. The code checks out perfectly. Yet, I’ve got two questions:
IE renders wrong: http://g-b.dk/sample1.htm
I’ve made the entire layout by hand so that it checks out fine with W3C. It works fine with Mozilla (Firefox v0.9.2 on WinNT) but looks horrible with IE (v6.0.2800 on WinNT). Can you recommend a way to make this IE-friendly while keeping the code valid? If the short answer is “no” then so be it.
Valid code but weird whitespace: http://g-b.dk/sample2.htm
There’s a 4px gap under the image in this sample block, but there’s no obvious whitespace in the code. How can I close the gap while keeping the code valid? I’ve put the relevant CSS directly inline for easy reviewing.
TorbenGB . . . Get a free WebID and try out DreamHost hosting