Hello,
I have exactly the same question. How can we center the name & email fields in the WordPress sidebar?
Thanks a lot!
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
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
.nsu-form input.nsu-submit{ float:right; }
Thank you so much – that worked!
[ never mind – figured it out! ]