Can someone help me vertically center text inside a div, consistently across browsers. In IE9 ONLY, text is one pixel closer to the top of the parent div. All other browsers render the text as expected.
Important: I'm using standards-mode:
<!DOCTYPE>
Code:<!DOCTYPE> <html> <head></head> <body> <div style="width:100px; height:16px; font-size:13px; font-family:Arial; line-height:1.2; background-color:red; color:White; vertical-align:middle"> <div style="line-height:16px">XXXXXXXXXX</div> </div> </body> </html>


Reply With Quote





Bookmarks