Support » Plugin: MailChimp for WordPress » How to centre as a text widget?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi there,

    The following code should center everything.

    .mc4wp-form { text-align:center; }
    .mc4wp-form input{ text-align:center; margin: 0 auto; }

    Alternatively, the following code will increase the width of the input fields to 100%, which might look better.

    .mc4wp-form { text-align:center; }
    .mc4wp-form input[type="text"], .mc4wp-form input[type="email"] { width:100%; box-sizing: border-box; text-align:center; }
    .mc4wp-form input[type="submit"] { margin: 0 auto; }

    Hope that helps!

    Plugin Author Danny van Kooten

    (@dvankooten)

    PS. Some browsers won’t let you center the placeholder text.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to centre as a text widget?’ is closed to new replies.