Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my text being cut off in IE7?

The text on my web page looks fine in Firefox & Safari, but in IE7 certain portions are cut off. It looks like (but it hasn't) it has been placed in a smaller element with overflow: hidden;.

Anyone know how to remedy this?

like image 644
alex Avatar asked Mar 31 '09 01:03

alex


1 Answers

You need to specify the line height to match the font size...

CSS

h1 {
   font-size: 2em;
   line-height: 2em; /* or 100% */
}

See also IE7 is clipping my text. How do I adjust its attitude?

like image 165
alex Avatar answered Sep 27 '22 18:09

alex