Jump to content

Photo's go through navbar

Recommended Posts


I am making a portfolio website and i want to add a opacity to my pictures.

But my navbar is sticky so it scrolls with the page but if i hover over a image it goes through the nav bar.

Is there a way to fix this problem?

I will add a picture to make it more clear.

Hope you guys can help 

Thank You!


/***************************** Code ************************************************/

  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: 20% 60% 20%;
  background-color: #2C2949;
  position: sticky;
  top: 0;
  width: 100%;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: row;
  justify-content: space-between;


2019-03-30 21_11_03-Sybrand Bos portfolio website.png

Link to post
Share on other sites

Try setting a higher z-index for your navigation bar. (If putting this on navigation doesn't work, try putting it elsewhere.)

	z-index: 500;


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...