Well, first you need to know about CSS or cascading style sheets. They are used to style our web pages. Using CSS, you can style your button.
For instance only:
What is CSS?
- CSS means cascading style sheets
- Styles determine how to render HTML elements.
- Styles were added in HTML 4.0 to solve the problem.
- External style sheets can save a lot of work.
- Style sheets are stored in CSS files
You can style this button as follows:
input[type=submit] { border-radius: 5px; border: 0; width: 80px; height:25px; font-family: Tahoma; background: #f4f4f4; background: -moz-linear-gradient(top, #f4f4f4 1%, #ededed 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #f4f4f4), color-stop(100%, #ededed)); background: -webkit-linear-gradient(top, #f4f4f4 1%, #ededed 100%); background: -o-linear-gradient(top, #f4f4f4 1%, #ededed 100%); background: -ms-linear-gradient(top, #f4f4f4 1%, #ededed 100%); background: linear-gradient(to bottom, #f4f4f4 1%, #ededed 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#ededed', GradientType=0); }
http://jsfiddle.net/mareebsiddiqui/jGVa3/1
source share