SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict Divisive Cotton's Avatar
    Join Date
    Jun 2008
    Location
    Andy lives in London, UK
    Posts
    393
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Veritical alignment of text in input field in IE

    If I have a tall input field then the text automatically centres itself in non-IE browsers, but in IE it is positioned at the top of the input field...

    I've tried the usual vertical-align tricks but they don't seem to work... any ideas here?
    Let everyday be Christmas

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,321
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    Have you tried specifying input {vertical-align: middle;} ?

    If that's no use, could you provide some example code? (Preferably a page with embedded CSS.)

  3. #3
    SitePoint Addict Divisive Cotton's Avatar
    Join Date
    Jun 2008
    Location
    Andy lives in London, UK
    Posts
    393
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually, I've just worked it out - I did the old line-height the exactly the same as the element height trick... I'm sure that didn't work the last time I tried it...
    Let everyday be Christmas


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •