Title: Header Shifting sometimes
Last modified: August 21, 2016

---

# Header Shifting sometimes

 *  [NoraDemi](https://wordpress.org/support/users/norademi/)
 * (@norademi)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/)
 * Hello,
 * I am coding a custom wordpress theme for the first time. It is going well so 
   far. Except for one tiny thing. Whenever I refresh my site a few times in a row,
   the top header (where the navigation bar is) shifts up and down. It’s very weird.
   Does anyone know why it does this?
 * Here is the site: [http://norademidesign.com/test/](http://norademidesign.com/test/)
 * Thank you

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

 *  [paulwpxp](https://wordpress.org/support/users/paulwp/)
 * (@paulwp)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852110)
 * Try validate markup and CSS, fix the errors that matter.
 * Markup Validator
    [http://validator.w3.org/](http://validator.w3.org/)
 * CSS Validator
    [http://jigsaw.w3.org/css-validator/](http://jigsaw.w3.org/css-validator/)
 *  Thread Starter [NoraDemi](https://wordpress.org/support/users/norademi/)
 * (@norademi)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852273)
 * Okay, I put it through the validators and nothing showed up that would cause 
   this shift. I noticed it’s only happening with Safari and Chrome.
 * Any other ideas?
 * Thanks.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852276)
 * There are some errors that should be corrected…
 * But it looks like the problem is that you need a “clear” on this element:
 *     ```
       <div id="container">
       ```
   
 *  Thread Starter [NoraDemi](https://wordpress.org/support/users/norademi/)
 * (@norademi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852282)
 * That didn’t work either, WPyogi. But I put a clear: both; on some other divs 
   and it stopped shifting up and down. Now it’s not lining up across the logo.
 * The CSS/HTML errors I have shouldn’t effect layout… right?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 10 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852283)
 * > Now it’s not lining up across the logo.
 * What isn’t?
 *  Thread Starter [NoraDemi](https://wordpress.org/support/users/norademi/)
 * (@norademi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852290)
 * The Logo and the contact info and menu should be in one row. But sometimes _sometimes_
   it shifts, mostly when you first load the page. I think, for the life of me, 
   why it’s doing that.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852291)
 * You have no CSS for those elements – why is that? or do you have CSS errors that
   are breaking the CSS.
 * Possibly add these – and then use a browser tool like Firebug to sort out the
   details:
 *     ```
       #main-wrapper img {
          float: left;
       }
   
       #inner-header-wrapper {
          float: right;
       }
   
       #container {
          clear: both;
       }
       ```
   
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852292)
 * >  sometimes it shifts, mostly when you first load the page. I think, for the
   > life of me, why it’s doing that.
 * Possibly due to slow loading of CSS or browser caching or site caching.

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

The topic ‘Header Shifting sometimes’ is closed to new replies.

## Tags

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

 * 8 replies
 * 4 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/header-shifting-sometimes/#post-3852292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
