Title: align widget title
Last modified: August 20, 2016

---

# align widget title

 *  [practical](https://wordpress.org/support/users/kit-grill/)
 * (@kit-grill)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/)
 * How do I align widget titles? when i center the sidebar in the css the titles
   in bold are not centered with the links below.
 * [http://www.theodysseyjournal.com](http://www.theodysseyjournal.com)
 * Many thanks,
 * Kit

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

 *  [Aboobacker.](https://wordpress.org/support/users/abooze/)
 * (@abooze)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244463)
 * Even though the coding is not in a perfect way I think, add the following to 
   your **style.css** (or amend it to **line 184** of the **style.css**)
 *     ```
       ul{
         padding:0;
         }
       ```
   
 *  Thread Starter [practical](https://wordpress.org/support/users/kit-grill/)
 * (@kit-grill)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244492)
 * Thanks alot 🙂
 * appreciate your help,
 * looks great
 *  Thread Starter [practical](https://wordpress.org/support/users/kit-grill/)
 * (@kit-grill)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244494)
 * oh, i just added the code, but the links don’t work now?
 * cheers
 *  [Aboobacker.](https://wordpress.org/support/users/abooze/)
 * (@abooze)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244519)
 * It is because of your html coding is improper!
    You have put:
 *     ```
       #container {
           margin: -425px 0 0 0;
           padding: 20px 0 10px;
           position: relative;
           top: 0;
       }
       #sidebar {
           margin-left: 950px;
           padding: 40px 0 0 0;
           position: relative;
           text-align: center !important;
           top: -10px;
           width: 200px;
       }
       ```
   
 * change these as follows:
 *     ```
       #container {
           float: left;
           padding: 20px 0 10px;
           position: relative;
           top: 0;
           width: 940px;
       }
       #sidebar {
           float: right;
           padding: 40px 0 0 0;
           position: relative;
           text-align: center !important;
           top: -10px;
           width: 200px;
       }
       ```
   
 * **Please make a backup of `style.css` before you proceed.**
    Also put a `<div
   id="main_container">` before the `<div id="sidebar">` and close it after `<div
   id="container">`. Then add below to the css:
 *     ```
       #main_container {
           width:1140px;
           margin:0 auto;
       }
       ```
   
 * Cheers…
 *  Thread Starter [practical](https://wordpress.org/support/users/kit-grill/)
 * (@kit-grill)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244529)
 * Thanks, this is my first website i’ve built so still learning,
 * when you say, “Also put a <div id=”main_container”> before the <div id=”sidebar”
   > and close it after <div id=”container”>.”
 * How do i end the div and is this in the main index template?
 * thankyou!
 *  [Aboobacker.](https://wordpress.org/support/users/abooze/)
 * (@abooze)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244539)
 * Yes. Most probably the `<div>` container ends in the same template such as `index.
   php` and `page.php` etc.
 *  Thread Starter [practical](https://wordpress.org/support/users/kit-grill/)
 * (@kit-grill)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244547)
 * ah ok, I added <div id=”main_container”> and the main content is now off center,
   any suggestions?
 * [http://www.theodysseyjournal.com](http://www.theodysseyjournal.com)
 * Thanks again

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

The topic ‘align widget title’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [practical](https://wordpress.org/support/users/kit-grill/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/align-widget-title/#post-2244547)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
