Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    HTML input button padding issue

    I have this below input button HTML.The issue is that when i go to developer tools and say change the text in the input button the padding increases by itself in IE9 .I tested the same in chrome and the padding stays the same over there .Also i ran the above code in w3schools site in IE 9 and there also the padding stays the same after changing the text inside .Can someone please give me some direction.

    <html>
    <head>
    <title>
    my page
    </title>

    </head>

    <body>

    <input type="button" id="btn1" value="test" />

    </body>
    </html>

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello sidhu688,
    Is that your entire code? Whenever IE renders things differently from a good browser, like FF, I always suspect a missing DocType.
    See the link about DocTypes in my signature line.

    See if this helps -
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <input type="button" id="btn1" value="test test test" />
    <input type="button" id="btn1" value="test" />
    </body>
    </html>
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    sidhu688 (11-15-2012)

  • #3
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    awesome..worked for me

    That worked just fine for me..thank you so much


  •  

    Tags for this Thread

    Posting Permissions

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