Title: Header syntax
Last modified: August 17, 2018

---

# Header syntax

 *  Resolved [nam1962](https://wordpress.org/support/users/nam1962/)
 * (@nam1962)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/header-syntax/)
 * Hi !
    I try to get a sticky menu. This :
 *     ```
       /* sticky top */
       .header-top {
       	position: fixed;
       	width: 100%;
       	z-index: 1000;
       }
   
       .main-content {
       	padding-top: 13px; 
       }
       ```
   
 * …works well on desktop, but when I shift to mobile, the zones are inverted and
   it become ugly.
 * Where did I miss something ?
 * Best
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fheader-syntax%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [nam1962](https://wordpress.org/support/users/nam1962/)
 * (@nam1962)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/header-syntax/#post-10600215)
 * My error, did’nt even need to wrap with :
 *     ```
        @media only screen and (min-width: 760px) {
       }
       ```
   
 * as top and main header line where mixed up 😛
 * Best
    -  This reply was modified 7 years, 9 months ago by [nam1962](https://wordpress.org/support/users/nam1962/).

Viewing 1 replies (of 1 total)

The topic ‘Header syntax’ is closed to new replies.

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

 * 1 reply
 * 1 participant
 * Last reply from: [nam1962](https://wordpress.org/support/users/nam1962/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/header-syntax/#post-10600215)
 * Status: resolved