My client has asked me for a submit button with 2 words and 3 different text colors:
<input type="submit" value="SUBMIT NEWSLETTER" />
SUBMIT = black NEWS = black LET = white TER = black
I'm guessing CSS won't do this. Maybe Javascript?
Thanks in advance for any ideas!
yes, multiple submit buttons can include in the html form. One simple example is given below.
Let's learn the steps of performing multiple actions with multiple buttons in a single HTML form: Create a form with method 'post' and set the value of the action attribute to a default URL where you want to send the form data. Create the input fields inside the as per your concern. Create a button with type submit.
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!
Just use a button and put a span in it
<button type="submit">SUBMIT NEWS<span style="color:white">LET</span>TER</button>
Fiddle - http://jsfiddle.net/Lczmkmr1/
It works with button
, span
and CSS.
<button type="submit" style="background-color:#ff0000">
<span style="color: #ffffff">Submit</span>
<span style="color: #000000">Newsletter</span>
</button>
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