Search code examples
htmlcssxhtmlsubmit-button

How to customize HTML submit buttons?


How would I make a submit button appear as just plain text which will override the default browser button style?

I have searched the internet but all I find is how to put a image for a submit button.


Solution

  • You will need background-color: transparent; (Or you can use hex as well) and border: 0;, that will get you the desired result.

    input[type="submit"].plain {
        border: 0;
        background: transparent; /* Or whatever background color you want to use */
    }
    

    Demo