Jump to content

Fixed / Floating Header


Recommended Posts

Hello, 

I set the header (and top-menu) to be fixed so it could stay on when scrolling down. 
However, now the menu is "on the top" of category-image, as well as the content-box I set up for the homepage. The effect is that the resizing is bugging --> For example, if you go to the homepage http://www.homegourmet.be and minimize the window, the "Home" of "Home Gourmet" is disappearing. 

 

How come that my fixed-topmenu is now on the top of my category images, and not above them? setting-up a padding-bottom doesn't work (and it leaves a blank padding, where I want my menu to be "scotched" to the image right below)

 

modified global.css code: 

header {
  z-index: 1;
  position: fixed; /*old = relative */
  background: #fff;
  padding-bottom: 0px; 
  width: 100%}

Any idea? Thanks !!! 

Edited by kineas (see edit history)
Link to comment
Share on other sites

I see, well in this kind of situations, when I want to make something fixed, I set an additional padding to what is next after it. For example in your case a top padding of 61px to the columns-container should do.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...