Scripsit TheBagbournes:
[ a fullquote, always a useful signal of lack of comprehensive reading,
followed by
an explanation that lacks a URL and doesn't really explain much: ]
Well, I needed to use a table to constrain the two right hand
elements to line up exactly to the right of the left hand element,
and each be exactly half the height, exactly adjacent.
"Needed"? Is that because you don't know how to use CSS?
Anyway, you didn't mention anything about this setting or specifically about
your desire (or "need") to achieve an _exact layout_.
I was creating a spinner control.
That's empty words without a URL.
It's the only way to do it.
That's what you think.
A self
contained element that contains one input field, and two CSS-styled
divs which act as buttons.
Good grief.
Adding
td { border:1px solid black} shows you are correct in that there is
an extra bit on the right at the bottom.
Funny, I knew it even before I tested it.
But that first example you
gave didn't work at all.
It works remarkably well for the question you originally asked. Presumably
you did not manage to copy it properly, or you actual page, which you don't
reveal, contains much more oddities than you've told so far. Any correct
HTML can be broken by incorrect HTML elsewhere on the page, or incorrect
CSS, or incorrect JavaScript.
I'm really not concerned with fashionable dogma about tables being
"evil" or over in javascript land eval being "evil". I don't use
tables for page layout because it's over-complicated. But I do use
use whatever works without torturing myself or my code to fit fads.
It seems that so far you haven't even now, with some help from outside,
managed to get the simple idea implemented properly, and you were quite
happy with an incorrect approach you souped up, until the mistake was
pointed to you. I don't think this qualifies you as competent in matters of
principles in web design and in criticizing what you think that other think
about it.