How to style submit form button? This is possible or I should use the picture(png)? I mean something like this:
The simplest way to do this is by using the WordPress CSS Editor. To open this, go to Appearance » Customize and select Additional CSS. Once you've opened the Additional CSS section, you can paste in your new CSS, click the Save & Publish button, and you're all set!
Details of the CSS Code for Your Submit Button background – sets up the background color behind the text. color – determines the color of your text. border-style – sets the style of your submits button borders. border-color – sets the color of your submit button borders.
yes, multiple submit buttons can include in the html form. One simple example is given below.
Create another button with type submit. Also add a 'formaction' attribute to this button and give it the value of the secondary URL where you want to send the form-data when this button is clicked. The formaction attribute will override the action attribute of the form and send the data to your desired location.
Well, You should first know about CSS or Cascading Style Sheets. They are used to style our webpages. Using CSS you can style your button.
Just For Instance:
What is CSS?
You can style the button like this:
input[type=submit] {
border-radius: 5px;
border: 0;
width: 80px;
height:25px;
font-family: Tahoma;
background: #f4f4f4;
/* Old browsers */
background: -moz-linear-gradient(top, #f4f4f4 1%, #ededed 100%);
/* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #f4f4f4), color-stop(100%, #ededed));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f4f4f4 1%, #ededed 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f4f4f4 1%, #ededed 100%);
/* Opera 11.10+ */
background: -ms-linear-gradient(top, #f4f4f4 1%, #ededed 100%);
/* IE10+ */
background: linear-gradient(to bottom, #f4f4f4 1%, #ededed 100%);
/* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#ededed', GradientType=0);
/* IE6-9 */
}
http://jsfiddle.net/mareebsiddiqui/jGVa3/1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With