See the code behind this demo!

Styling card inputs

Applying css styles to the card element input field.

With Stripe.js to style the card element input field. Apply the styles to the container in which the element is mounted as if it were the input field.


Console

> Ready ...

            
              <style>
                .my-input {
                  border: 3px solid red;
                }
              </style>

              <div id="card-element" class="my-input"></div>
            
          

Experiment and learn

Make copies, remix, change and learn how to play with this tinydemo.


Any questions?

Reach out to us on any of our contact channels: