LoginSignup
0

More than 1 year has passed since last update.

posted at

Google reCAPTCHAの中央寄せ

Google reCAPTCHAを設置しようとすると、

<div class="g-recaptcha" data-sitekey="" data-callback="" data-expired-callback="" style=""></div>

こんなようなソースを貼れと言われる。

これを貼ると、その中にdivが作られて、だーっといろいろなソースが生成されて表示されるが、divの中のdivなので中央寄せができない。

ということでcssを以下のようにすればよい。

.g-recaptcha div {
    display: inline-block;
}

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0