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

Go To StackoverFlow.com

0

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

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

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

   CSS
   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


1

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


0

Write:

id="submit"

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

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