Vertical align images inside table data

I have a table row with two cells. The first cell contains the search input with a background image. The second cell contains an image (not background image), which acts as the submit button.

I'm not able to get them to align vertically in IE7. Can someone tell me what I am missing? The two images are both the same height (25px).

You can see from the image that the input background image is about 2px higher than the submit button image.
Capture.JPG
LVL 2
mmoore500Asked:
Who is Participating?
 
Jagadishwor DulalBraces MediaCommented:
Try css code for submit button;
submit{
 border:none;
padding:0px;
margin:0px;
}

Open in new window


And it's better if you post your code so that we can see the problem.
0
 
blueghoztCommented:
another thing you could try is applying CSS to the TD in question ensuring it has vertical-align:top or inline <td valign="top">
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.