A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Vertical alignment of Text Field in IE7

  1. #1
    Senior Member sakie's Avatar
    Join Date
    Apr 2005
    Location
    London
    Posts
    285

    resolved [RESOLVED] Vertical alignment of Text Field in IE7

    Hi Please review the attached.

    I'm having a wiered problem I've a text box attached to a button. In IE7 if all the margins and padding are set to zero (the standard approach for displaying the form elements properly) the text field become 1px off centered.

    When I set the margin-top to -1px the alignment starts appearing right for IE7 but become off centered on all other browsers (Firefox Chrom IE8 Beta). All these browsers display properly if I dont use margin-top to -1px

    Any prompt help in this regard will be highly appreciated
    Attached Files Attached Files

  2. #2
    Senior Member sakie's Avatar
    Join Date
    Apr 2005
    Location
    London
    Posts
    285
    Using a silly CSS hack worked for me

    I replaced
    Code:
    margin-top:-1px; with *margin-top:-1px;
    Where the * hack is known to render a particular style for IEs only

    Cheers

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center