html - Customise stripe button -
im using stripe checkout in rails app. have been following thier tutorial here. basic , have payment process working.
what i'm having trouble styling button in following code. script contains button (im not sure if said right), brings in default button:
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<%= rails.configuration.stripe[:publishable_key] %>" data-description="a month's subscription" data-amount="500" data-locale="auto"></script>
iv tried applying styles strip-button class have no luck, have looked within doc provided cant find nothing within suggest how style default button.
any suggestions or thier better way in styling button?
i made little code pen
i think you'll have use selector in stylesheet:
.stripe-button-el { width: 100px; # ... }
here's dom part want style:
<button type="submit" class="stripe-button-el" style="visibility: visible;"> <span style="display: block; min-height: 30px;">pay card</span> </button>
edit:
the dom part above injected script include. (you can imagine there time). have style dom part (in css).
see pen how change styles.
i think question closed now, asked how style it.
Comments
Post a Comment