vertical-align: middle display problem in IE7

Last post 04-13-2007 9:38 AM by krama. 2 replies.

Sort Posts:

  • vertical-align: middle display problem in IE7

    04-13-2007, 12:50 AM
    • Member
      112 point Member
    • krama
    • Member since 02-03-2007, 7:50 PM
    • Posts 52

    Hi

    My problem is when I use vertical-align: middle with the text in a label only the top half of the text displays in IE7. It displays fine in IE6

    any idea hoe to fix this

    Thanks

    no go no know
  • Re: vertical-align: middle display problem in IE7

    04-13-2007, 4:48 AM
    Answer
    • Member
      197 point Member
    • tomaszwaraksa
    • Member since 03-10-2003, 2:26 PM
    • Eindhoven, Netherlands
    • Posts 36

    IE7 used to be more compliant with the Standards, however stupid they are. Nevertheless, try this:

     <div style="line-height:30px;">Hello!</div>

    The text inside the div should be perfectly in the middle. The only problem that still persists is that for some reasons, known only to the CSS-nerds, line-height attribute does not accept percentage sizes, should you need them...

  • Re: vertical-align: middle display problem in IE7

    04-13-2007, 9:38 AM
    • Member
      112 point Member
    • krama
    • Member since 02-03-2007, 7:50 PM
    • Posts 52

    Thanks this works ok, my pages work ok in ie6, if i change them using this will they display ok.

    no go no know
Page 1 of 1 (3 items)