Title: Center header
Last modified: August 21, 2016

---

# Center header

 *  [emilhein](https://wordpress.org/support/users/emilhein/)
 * (@emilhein)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/center-header-2/)
 * Hi. I would like to center my heaader logo. I know its not possible with float
   in the css, but is there a workaround for it?
 * as it is now i can only adjust the header logo with the float (left og right)
 * You can see my site [here](http://xn--isp-wla.dk)
 * Thx

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

 *  [Boris Kuzmanov](https://wordpress.org/support/users/kuzmanov/)
 * (@kuzmanov)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/center-header-2/#post-4020151)
 * Remove `float: left;` from `#header .logo` and add `margin: 0 auto;`
 *  Thread Starter [emilhein](https://wordpress.org/support/users/emilhein/)
 * (@emilhein)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/center-header-2/#post-4020156)
 * i tried that several times:
    my #header .logo looks like this:
 * #header .logo {
 * background: transparent;
    border: none; padding: 0 0 20px 0; max-width: 100%;
   margin: 0 auto; }
 * And it doesn’t help 🙁
 *  [Boris Kuzmanov](https://wordpress.org/support/users/kuzmanov/)
 * (@kuzmanov)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/center-header-2/#post-4020159)
 * What file you are editing? I just made changed to style.css using Chrome Dev 
   Tool and it works just fine.
 *  Thread Starter [emilhein](https://wordpress.org/support/users/emilhein/)
 * (@emilhein)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/center-header-2/#post-4020161)
 * i am editing style.css
 *  [josma](https://wordpress.org/support/users/josma/)
 * (@josma)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/center-header-2/#post-4020262)
 * I have also tried this in style.css just like you say
 * “background: transparent;
    border: none; padding: 0 0 20px 0; max-width: 100%;
   margin: 0 auto;”
 * however, on a large desktop of a width of 1200px and above my logo floats lefts,
   but when I change my below 1200px it behaves like it should.

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

The topic ‘Center header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/duena/2.0.0/screenshot.png)
 * Duena
 * [Support Threads](https://wordpress.org/support/theme/duena/)
 * [Active Topics](https://wordpress.org/support/theme/duena/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/duena/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/duena/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [josma](https://wordpress.org/support/users/josma/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/center-header-2/#post-4020262)
 * Status: not resolved