Currently tackling a textbox with a background and wondering if there's a way to vertically center the text inside it.
Note: Text is perfectly centered in Firefox, but in IE it appears too high for some reason. Have tried adjusting line-height, padding, and margin with no success. Any suggestions?
UPDATE: Here is my current CSS. I've already attempted the margin-top method to no avail. This issue is specific to IE only, but I have separate IE style sheets to address it.
.textValue { color: black; font-size: 12px; font-family: David, sans-serif; }
input { width: 110px; padding: 0 2px; padding-right: 4px; height: 20px; border: solid 1px white; margin-bottom: 0px; background: url(../images/contactTextBg.png) no-repeat top right; }
label { float: right; margin-left: 5px; font-size: 13px; }
For IE, the following style is applied:
.textValue { font-size: 14px; }
Regarding the HTML structure:
<tr>
<td><label for="name">name</label></td>
<td><input type="text" name="name" id="name" class="textValue" value="" /></td>
</tr>
Thank you, Amit