The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Background color of drop-down nav bar behind frontpage background image.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #276578

    I have a problem with my top nav bar.

    The text of the nav bar in mobile mode turns into a burger-menu and if you click it, it is suspossed to fold out with a background (white) on top of my frontpage slider. Although the text shows up infront of the background image – the white background for the text does not.

    I have made a codepen so you can see what i mean.
    ((For testing purposes the white background is green))

    Any help is appreciated


    The issue is the frontslider…you have set z-index:-999 but z-index doesn’t work unless the element has a position other than static.

    So apply position:relative and then z-index:-1 is more than enough.

    .frontslider {
      z-index: -1;


    Thank you, this helped a bunch :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.