Originally published at Now Is A Long Time Too. You can comment here or there.
Yesterday, after lunch, winding down through a long series of formatting problems on the current project, I found some odd gaps in table cells. For some reason, places where we had nicely formatted tabular data with images in some of the cells, there was a gap of two pixels at the bottom of the cell. I flexed my (by now, reasonably well developed) CSS muscles, and went to work. Some hours later, I was still staring at it. I cut it down to a bare bones test case. It still happened. I ripped out every single bit of CSS individually, margin, margin-bottom, padding, padding-bottom, and it still happened. And eventually, trying ridiculous things, I found it.
It was the gods-bedamned doctype. 6 hours work. One line of code.
From:
no subject
From:
no subject
<input ... >
function removeSelected(e)
{
var oEvent = window.event ? window.event : e;
if (oEvent.keyCode==46)
{
var myText = document.getElementById("myInput");
myText.value="";
}
}
From:
no subject
From:
no subject
From:
no subject
Because one thing you need to be aware of is that IE puts a margin of 2 or 3 px underneath an image unless you specify it as "display: block" like so:
/* IE Hack */ * html #tableid img{ display:block; }This usually does the trick.
Though what do you mean by the Doctype? Did you change the type of Doctype or just remove it altogether. If the latter, working in quirksmode will only take you so far.
Check out www.positioniseverything.net as well as alistapart, especially this page
From:
no subject
From:
no subject
From:
no subject
In my own view it looks like:
Now, why on earth am I going to so much trouble to show you what it looks like for me? I suspect I might be procrastinating...