Link to home
Start Free TrialLog in
Avatar of MinnRick
MinnRickFlag for United States of America

asked on

Vertical-Alignin IE9

Hello Experts -
I've got a table cell without spacing, padding or a border inside of which I have some text that I want vertically centered.  Both valign=middle in the <td> tag and vertical-align:middle; in the style sheet work fine with one exception: IE9.  It shifts the text one irritating pixel upward from vertical center.  F12'ing to IE9 Compatibility View makes the shift goes away.

With a declaration of <!DOCTYPE html>, is there a reason that (non-compatibility) IE9 does this and if so is there a workaround?  Thanks all.

-- Rick
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MinnRick

ASKER

Yep, that's a perfectly acceptable answer to this and, quite frankly, about what I expected.  The 1px is trivial in the grand scheme - just wanted to make sure that the irregularity wasn't something basic I was overlooking.  Thanks for the response.
MinnRick,

Thank you for understanding that sometimes there is no answer just information. :^)



Cd&