Results 1 to 9 of 9

Thread: How to get rid of the submit button inner border in IE & Opera?

  1. #1
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default How to get rid of the submit button inner border in IE & Opera?

    Hi,

    Here's a sample form:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample Form</title>
    <style type="text/css">
    input#send {width:80px; height:20px; padding:0; border:0;}
    div {width:80px; height:20px; border: 1px solid green}
    </style>
    </head>
    <body>
    <form name="input" action="" method="post">
    <input type="text" name="user"> Name
    <div><input id="send" type="submit" value="Submit"></div>
    </form>
    </body>
    </html>
    The submit button gets a dotted border inside when focused.

    Many thanks for any help!
    Rain Lover

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    you can try this
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample Form</title>
    <style type="text/css">
    input#send {width:80px; height:20px; padding:0; border:0;}
    div {width:80px; height:20px; border: 1px solid green}
    input:focus {outline:none;}
    </style>
    </head>
    <body>
    <form name="input" action="" method="post">
    <input type="text" name="user"> Name
    <div><input id="send" type="submit" value="Submit"></div>
    </form>
    </body>
    </html>

  3. #3
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by azoomer View Post
    you can try this
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample Form</title>
    <style type="text/css">
    input#send {width:80px; height:20px; padding:0; border:0;}
    div {width:80px; height:20px; border: 1px solid green}
    input:focus {outline:none;}
    </style>
    </head>
    <body>
    <form name="input" action="" method="post">
    <input type="text" name="user"> Name
    <div><input id="send" type="submit" value="Submit"></div>
    </form>
    </body>
    </html>
    I'm afraid that doesn't work.

  4. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    It works for me in IE, opera, chrome and safari. To get rid of the dotted border in firefox too, I found this to be working.
    Code:
    input:focus {outline:none;}
    input[type="submit"]::-moz-focus-inner { border: none;}

  5. #5
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by azoomer View Post
    It works for me in IE, opera, chrome and safari. To get rid of the dotted border in firefox too, I found this to be working.
    Code:
    input:focus {outline:none;}
    input[type="submit"]::-moz-focus-inner { border: none;}
    Please look at the screenshots:
    http://rain-lover.webs.com/IE6.JPGhttp://rain-lover.webs.com/IE6.JPG

    http://rain-lover.webs.com/Opera11.JPG

  6. #6
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Yes I see what you mean. Try this link and see if you get the same. It could be a cache that needs to be cleared

  7. #7
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by azoomer View Post
    Yes I see what you mean. Try this link and see if you get the same. It could be a cache that needs to be cleared
    Yes: use the keyboard to focus on the submit button and you'll see it.

  8. #8
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Ok, then I'm out of ideas. ( btw I don't know how to focus with the keyboard). Maybe someone else has a solution ?

  9. #9
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by azoomer View Post
    btw I don't know how to focus with the keyboard.
    Using the Tab key.

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
  •