I started using google captcha for a series of form submission in my site, I had to resize said captchas due to the fact that they where way to big for the modals and part of them where laying outside the modal so i resized them following the instructions [here](https://geekgoddess.com/how-to-resize-the-google-nocaptcha-recaptcha/). Gladly the resize worked, the captchas now appear in the correct size for the modal but they do not appear centered, and I ran out of options to center them, i tried almost everything but they refuse to be centered.

I tried adding the classes `my-auto`, `text-align: center;` and `display: inline-block;` on the captcha and `text-center` and `justify-content-center` in it's parent div's, none worked.

I get no error messages and im out of ideas too.

I am using Bootstrap 4.

Below my Modal code:

```html
<div class="modal fade" id="modal-consulta" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="staticBackdropLabel">CONSULTA</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form action=".\php\consulta.php" method="POST" enctype="multipart/form-data">
                    <div class="form-group row" style="margin-bottom: 9px;">
                        <label class="col-sm-2 col-form-label font-weight-bold">Nombre</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="nombre" name="nombre" placeholder="Nombre" required>
                        </div>
                    </div>
                    <div class="form-group row" style="margin-bottom: 9px;">
                        <label class="col-sm-2 col-form-label font-weight-bold">Telefono</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="telefono" name="telefono" placeholder="Telefono" required>
                        </div>
                    </div>
                    <div class="form-group row" style="margin-bottom: 9px;">
                        <label class="col-sm-2 col-form-label font-weight-bold">Mail</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="mail" name="mail" placeholder="Mail" required>
                        </div>
                    </div>
                    <div class="form-group row" style="margin: 0px 0px 4px 0px;">
                        <label class="col col-form-label font-weight-bold" style="padding-left: 0px;">Consulta</label>
                    </div>
                    <div class="form-group row" style="margin-bottom: 9px;">
                        <textarea id="consulta" name="consulta" class="col form-control" rows="4" style="margin: 0px 15px 0px 15px;"></textarea>
                    </div>
                    <div class="col text-center">
                        <div class="row justify-content-center" style="margin-bottom: 9px;">
                            <div class="g-recaptcha" data-sitekey=""></div>
                        </div>
                        <button type="submit" class="btn btn-success">ENVIAR CONSULTA</button>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">DESCARTAR</button>
            </div>
        </div>
    </div>
</div>

```

Below my resizing CSS code:

```css
.g-recaptcha {
    transform:scale(0.77);
    -webkit-transform:scale(0.77);
    transform-origin:0 0;
    -webkit-transform-origin:0 0;
}

```

Here's a picture:

[![enter image description here](https://i.stack.imgur.com/C9x2P.png)](https://i.stack.imgur.com/C9x2P.png)

Thank you in advance for your time and I am looking forward to be part of this community of which i have heard so much positive things.