css - Can I style an input button to be just a rectangle with a border? -


i style input buttons take away normal styling , make them rectangles rounded edges. i'm new css. can tell me if it's possible this.

john

yea, sure.

input[type=submit], input[type=button], button {     border: 1px solid #000;     background: #f00;     -moz-border-radius: 5px;     -webkit-border-radius: 5px;     border-radius: 5px; } 

there go.

http://jsfiddle.net/4fw4y/

example more bells , whistles:

http://jsfiddle.net/4fw4y/1/

and yea, jeroen noted, fancier effects supported in modern browsers.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -