WordPress.org

Support

Support » Plugins and Hacks » Newsletter Sign-Up » [Resolved] [Plugin: Newsletter Sign-Up] Formatting

[Resolved] [Plugin: Newsletter Sign-Up] Formatting

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    I have exactly the same question. How can we center the name & email fields in the WordPress sidebar?

    Thanks a lot!

    Plugin Author Danny van Kooten

    @dvankooten

    You can just do this with regular CSS. Add these lines to your theme’s stylesheet.

    .nsu-form label{ text-align:center; }
    .nsu-form input{ margin-left:auto; margin-right:auto; }

    If you only want these styles to apply to your Newsletter Sign-Up form in your sidebar, use the ID selector.

    #nsu-form-1 label{ text-align:center; }
    #nsu-form-1 input{ margin-left:auto; margin-right:auto; }

    Cool! That worked. Thank you!

    Hello,

    I have tried as you said and am still not getting this to work, any suggestions?

    thanks
    sharon

    Plugin Author Danny van Kooten

    @dvankooten

    Hey Sharon,

    I see you’ve correctly added the CSS rules to your theme’s stylesheet. However, I’ve made a tiny mistake as I didn’t read your request properly.

    If you use the following CSS, things should work as you’d like. 🙂

    .nsu-form label{ text-align:center; display:inline-block; width: 50px; }
    .nsu-form input{ margin-left:auto; margin-right:auto; }

    `

    Hi Danny,

    Thank you so much for this, it has worked now. The only small remaining issue is that the subscribe button is still sitting to the left side and I would like this either right justified or centred.

    How can I do this?

    Many Thanks
    Sharon

    Plugin Author Danny van Kooten

    @dvankooten

    .nsu-form input.nsu-submit{ float:right; }

    Thank you so much – that worked!

    [ never mind – figured it out! ]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] [Plugin: Newsletter Sign-Up] Formatting’ is closed to new replies.
Skip to toolbar