How to centralize Google's reCaptcha?

1

I have a reCaptcha in my form, but I can not centralize it or leave it at the same size as the fields.

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-10 col-sm-offset-1">
            <div class="col-sm-6">
                 ...
            </div>
            <div class="col-sm-6">
                <form accept-charset="UTF-8" method="post" action="">
                    ...
                    <div class="form-group">
                        <label>Cargo*:</label>
                        <input type="text" class="form-control input-lg" required>
                    </div>
                    <div class="form-group">
                        <div class="g-recaptcha" data-sitekey="minha_key"></div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

How can I fix this?

    
asked by anonymous 11.08.2016 / 15:16

1 answer

2

The div of the recaptcha is a display block, to center you add a width in the div and a margin: auto.

.g-recaptcha {
  width: 302px;
  margin: auto;
}
    
11.08.2016 / 15:34