PDA

View Full Version : customize form button


m1a2x3x7
05-13-2007, 05:11 AM
Hey everyone,

I'm getting tired of the form button and want to make one of my own. I know how to change to color and size of it using CSS, but I want to change the shape and give it a different look and feel. Is there a way to have an image take place of the form button?

chriskq
05-13-2007, 05:19 AM
sure is.

make ur image the size/color/ etc u want. save as gif or jpg. then link and style it in ur css eg:


html
<input type=submit value="" class="updateSearch">

css
input.updateSearch {
width: 25px;
height: 21px;
background: url(../images/btnGo.gif) no-repeat 0 0;
margin: 10px 0 0 3px;
border: none;
}

m1a2x3x7
05-13-2007, 02:23 PM
thanks mate... ill have to give that a try later today