Making Submit and Reset have a different border from the input tag border

Go To


Please how can i make the submit button and reset button have a different border apart from the input tags

     <input typ="image" name="submit"     value=" " scr="image.png">

      <input type="image" name="reset"      value=" " scr="reset.png" >

   input, textarea, select {
   border: 2px solid red;

I have tried to add another selector with the name submit and reset but both of them still get the values from the input tags border.

2012-04-03 20:32
by NoName


input[type=image] or give them a class name or give them an id, name is not used for css

2012-04-03 20:34
by David Nguyen
Is it a chrome thing that I am able to use the name attribute - PeeHaa 2012-04-03 20:36
ah interesting, i guess you could use nam - David Nguyen 2012-04-03 20:38




In the input tag of the submit button, and then in the CSS, type:

    border: 1px solid black;     /* as an example */
2012-04-03 20:35
by NoName