Currently, I am facing a unique challenge while setting up a form using CSS tables. The issue is best explained through a fiddle:
In the third row, you'll notice that adding an image with a height less than the input box itself affects its overall height in Chrome and Firefox. Removing the <img>
tag resolves this alignment issue. Shouldn't the <img>
, being shorter than the input box, align neatly alongside it?
I'm certain there's a simple solution to this, but any guidance would be greatly appreciated.
Update: just to clarify - I have no intention of adjusting the height of the image provided, as it should remain constant. What I aim for is to position the image within two lines drawn across the screen, touching the top and bottom of the input box. Moreover, I want the input box to maintain the same amount of spacing above and below as other input boxes in the form. All of this without resorting to positioning hacks such as position: relative; top: 2px
, or similar workarounds.