I ended using a conditional to call IE7Hacks.css stylesheet that set the line-height in it. Is there any advantages to either method? Thank you.
-----Original Message----- From: David Laakso [mailto:[email protected]] Sent: Friday, May 28, 2010 12:16 PM To: Angela French Cc: 'css discuss' Subject: Re: [css-d] line-height IE7 versus IE8 Angela French wrote: > I have an <ul> to create my horizontal top nav. In both IE8 and FF 3, the > menu text is vertically centered in each <li> . I do have top and bottom > padding so that when I apply :hover I can change the background color of the > <li>. > > In IE7 (IE8 in compatability mode), the text is aligned near the top of the > <li> . I can apply line-height to the <li>, and that makes it render as > desired in IE7, but lowers the text in IE8 and FF3. > One way to approach it may be to feed IE/7.0 the specific value it needs with a hack. For example, only IE7.0 will see this: *:first-child+html ul li {line-height: 1.5; } Best, ~d desktop http://chelseacreekstudio.com/ ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
