IE puts a border around my submit button :(

Discussion in 'HTML & Website Design' started by bobby9101, Apr 16, 2007.

  1. #1
    I am using:
    <input type="submit" name="submit" id="button" value="submit" />
    CSS
    #button {
    border: 1px solid #009;
    }

    but for some reason IE puts an extra 1px black border around that one.
    How can I stop this?
     
    bobby9101, Apr 16, 2007 IP
  2. 8everything

    8everything Peon

    Messages:
    16,349
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <input type="submit" name="submit" id="button" value="submit" />
    CSS
    #button {
    border: 0px solid #009;
    }

    Try setting your border to 0....
     
    8everything, Apr 16, 2007 IP
  3. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That takes out both (obviously ;))
    But I want to keep the other border
     
    bobby9101, Apr 16, 2007 IP
  4. blackcamaro

    blackcamaro Peon

    Messages:
    148
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i'm also having this problem, its so weird. I am adding a button to a form and i need to style the button. i have the same code on both buttons, one has standard colors such as red and pink to define the border color, and the other has numeric colors like #158734... The one using regular colors such as red does not have a black border around it and the one using numeric does have a black border around it. anybody know about this?
     
    blackcamaro, May 12, 2011 IP
  5. staygolden

    staygolden Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Where is this button located?
     
    staygolden, May 12, 2011 IP
  6. blackcamaro

    blackcamaro Peon

    Messages:
    148
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm actually thinking this is an IE 9 thing... I've used IEtester to verify that. there are some small rendering issues like padding that changes too after page load... I think IE 9 still has some bugs.
     
    blackcamaro, May 12, 2011 IP
  7. blackcamaro

    blackcamaro Peon

    Messages:
    148
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    <div class="left">
    <input type="submit" name="vote" value="Like" class="input green" />
    </div>
    <div class="left form">
    &nbsp;
    </div>
    <div class="left">
    <input type="submit" name="skip" value="Skip" class="input red" />
    </div>


    .red {
    border: 1px solid red; background-color: pink; color: maroon;
    }
    .red:hover {
    border: 1px solid red; background-color: red; color: white;
    }

    .green {
    border: 1px solid #9dc900;
    background-color: #e1f0ab;
    color: #526800;
    }
    .green:hover {
    border: 1px solid #9dc900;
    background-color: #9dc900;
    color: white;
    }

    .left {
    float: left;
    }

    .input {
    width: 100px;
    height: 30px;
    padding: 5px;
    margin: 5px;
    }
     
    blackcamaro, May 12, 2011 IP