Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Fixed header trouble.

Featured Replies

Hey guys I have some trouble with a fixed header. I got it fixed and on the top. But if you visit http://revse.net/temp you will see that the content is going on top of the header. I want the content to go below the header. Any suggestion on how I can get this done?

I guess you want the head to always be at the top even when scrolling.

 

The problem is by fixing it you take it out of the natural flow of the page so you will need to account for that by placing a margin-top the same size as the head on the #wrapper div.

 

Also may want to give the header a z-index so it always sits on top of everything

 

Cheers

 

Ysuran

#head
{
    ...
    ...
    z-index: 110;
}

 

The z-index sets the ordering of layers, since your image slider uses a z-index of 100 for the pictures, putting it somewhere above 100 will make it go below the header.

 

The higher the z-index, the closer to the top it will become.

 

If later on, some content starts to go over the header, it maybe because it has a higher z-index than 110, so just keep upping the z-index of the head until its at the top.

Edited by markeh

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.