0

I am trying to put a border around it, but i can't. Here is what i have as far as CSS:

body{ margin:1em; }
body *{ font-family: RussellSquare}
body{background-color: #363636;}

input[type=number]{
    font-size:1em;
    width:2.5em;
    padding:3px;
    margin:0;
    border-radius:3px; 
    border: 1px solid #000;
    text-align:center;
}

input[type=number]:focus{
    outline:none;
}​
Hunter Mitchell
  • 7,063
  • 18
  • 69
  • 116

1 Answers1

0

It works just fine. Try it yourself on different browsers here.

Short explanation would be:

border is CSS property that is supported on all major browsers.

border-radius is CSS3 property that runs on all modern browsers. IE 6/7/8 is not one of them.

In case you want to know more about Internet Explorer support of border-radius

Read: Support for "border-radius" in IE

Community
  • 1
  • 1