Title: CSS Center Title
Last modified: August 30, 2016

---

# CSS Center Title

 *  [mattleaver](https://wordpress.org/support/users/mattleaver/)
 * (@mattleaver)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/css-center-title/)
 * Hi Guys,
 * I’m trying to do quite a simple thing and center my div titles ‘Our Services’&‘
   Get in Touch’ (just like the ‘Advertising is Changing’ title) for my website 
   [http://www.we-seed.co.uk](http://www.we-seed.co.uk).
 * I pinpointed ‘.widget-title’ as the element to change with custom CSS; and I’ve
   got the following on my custom css for the theme options:
 *     ```
       .widget-title {
       line-height: 0.8;
       margin-bottom: 10px;
       margin-top: 20px;
       line-height: 0.8;
       display: inline-block;
       padding: 10px 10px 5px;
       background: #61AE24;
       color: #fff;
       text-transform: uppercase;
       font-weight: 700 !important;
       text-align: cente !important;
       border: 4px solid #ffffff;
       box-shadow: 0px 0px 0px 3px #61AE24;
       }
       ```
   
 * Any ideas on what else I need to do to just get these titles center aligned?
 * Many thanks in advance.
 * Matt

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/css-center-title/#post-6276922)
 * typo alert: _text-align: cente !important;_
 * try with: _text-align: center !important;_
 * [http://www.w3schools.com/cssref/pr_text_text-align.asp](http://www.w3schools.com/cssref/pr_text_text-align.asp)
 *  Thread Starter [mattleaver](https://wordpress.org/support/users/mattleaver/)
 * (@mattleaver)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/css-center-title/#post-6276937)
 * Thanks for spotting aichymyth – feel a bit stupid for that!
 * However I made the relevant change and it still doesn’t seem to be working. It
   looks to be being overridden by something but I’m not sure what or how to fix
   it.
 * Thanks for your help.
 * Matt
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/css-center-title/#post-6276942)
 * try:
 * `.col-full .widget-title { display: table; margin-left: auto; margin-right: auto;}`
 * might not work in older browsers – [http://www.w3schools.com/cssref/pr_class_display.asp](http://www.w3schools.com/cssref/pr_class_display.asp)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CSS Center Title’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/css-center-title/#post-6276942)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
