0

I've been having issues center aligning the contents of a div in a wordpress site I made. The site is http://www.triplebs.ca and I want the "subscribe to our newsletter" div to have everything in it centered, but can't figure it out. Can anyone help me out here?

jh314
  • 27,144
  • 16
  • 62
  • 82
  • Can you copy/paste some code? – D4V1D Mar 27 '15 at 14:18
  • Try `.newsletter-widget, .et_pb_widget {text-align:center}` – cakan Mar 27 '15 at 14:19
  • You need to post relevant code here. The reason why is to help others with the same problem that you have. If the URL that you have posted is 404'ed you can't help anybody and the question is useless. – dowomenfart Mar 27 '15 at 14:19
  • possible duplicate of [How do you easily horizontally center a
    using CSS?](http://stackoverflow.com/questions/618097/how-do-you-easily-horizontally-center-a-div-using-css)
    – tomvodi Mar 27 '15 at 14:19

2 Answers2

1

Add this to your css:

.newsletter-widget, .widget_newsletterwidget {
  text-align: center !important;
}
TlmaK0
  • 3,578
  • 2
  • 31
  • 51
0

Add following CSS rules:

.newsletter-widget p {
    display: inline-block;
}

Also you need to add to the closest form tag:

text-align: center;
Indy
  • 4,838
  • 7
  • 24
  • 35