# SqPaymentForm iframes - not responding to font size

**URL:** <https://developer.squareup.com/forums/t/sqpaymentform-iframes-not-responding-to-font-size/1199>\
**Category:** Questions\
**Created:** [November 5, 2020, 11:11pm UTC](https://developer.squareup.com/forums/t/sqpaymentform-iframes-not-responding-to-font-size/1199 "2020-11-05T23:11:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JC23](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JC23](https://developer.squareup.com/forums/u/JC23)\
**Post date:** [November 5, 2020, 11:11pm UTC](https://developer.squareup.com/forums/t/sqpaymentform-iframes-not-responding-to-font-size/1199/1 "2020-11-05T23:11:53Z")

</div>

This should be easy to customize but for whatever reason/s I’m unable to change font size of SqPaymentForm iframes. I’m working with the css file [found here](https://github.com/square/sqpaymentform-nodejs-starterkit/blob/master/mysqpaymentform.css) & from the screenshot below you can see it recognizes the background color css tag (I changed it to black just to test). The css I have now is

```
/* Define how SqPaymentForm iframes should look */
.sq-input {
  font-size: 400px !important; /* IGNORES THIS TAG */
  height: 56px;
  box-sizing: border-box;
  border: 1px solid #E0E2E3;
  background-color: black; /* THIS WORKS FINE */
  border-radius: 6px;
  display: inline-block;
  -webkit-transition: border-color .2s ease-in-out;
  -moz-transition: border-color .2s ease-in-out;
  -ms-transition: border-color .2s ease-in-out;
      transition: border-color .2s ease-in-out;
}

```

![square_iframe](https://global.discourse-cdn.com/square/original/1X/eeba5fa04def0c7af990bcf9ed50668642778ba7.png)

You can see the black background (doesn’t cover entire input but at least it’s recognized) but the font clearly isn’t 400px or anything other than the default even with the !important override. I do import a css theme for the entire page but I don’t think it would impact font size or if there’s something else going on. Also, the text isn’t vertically centered for the inputs…

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [November 6, 2020, 6:17pm UTC](https://developer.squareup.com/forums/t/sqpaymentform-iframes-not-responding-to-font-size/1199/2 "2020-11-06T18:17:20Z")

</div>

The `sq-input` is the actual iframes, but if you’re talking about “Card Number” (etc) that appears to be the label, not part of the iframe. If that’s correct, then presumably you have a different class name for the labels to handle it.

If you’re trying to change the internal font size (of the input field), you would use the `inputStyles` of the `SqPaymentForm` instead, which handle internal styles of the iframe, versus the `inputClass` being external styles. ie:

```auto
var paymentForm = new SqPaymentForm({
  applicationId: applicationId,
  inputClass: 'sq-input',

  // Customize the CSS for SqPaymentForm iframe elements
  inputStyles: [{
    fontSize: '25px',
...

```

---

<div class="post-metadata">

**Author:** ![JC23](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JC23](https://developer.squareup.com/forums/u/JC23)\
**Post date:** [November 7, 2020, 5:58pm UTC](https://developer.squareup.com/forums/t/sqpaymentform-iframes-not-responding-to-font-size/1199/3 "2020-11-07T17:58:56Z")

</div>

Thanks for the reply @sjosey. That got it & found everything else [here](https://developer.squareup.com/docs/payment-form/cookbook/customize-form-styles) to make the desired changes.
