Hey guys, I’m new to web designing and i’ve been working with bootstrap for the past week. I was wondering what would be the best way for me to have a header image in the background of my nav bar and my navbar to respond in the correct way. Kind of how the CSS-Tricks navbar is with its background.
In other words, I’d like to have my navigation positioned below the header image, but overlapping part of the image. You can see CSS-Tricks orange part is on the left and above the nav menu.
Hey,
I think what you are talking about / trying to do is achieved using z-index and negative margins. The z-index alters the stacking order and negative margins will allow one div to ‘slide’ underneath another. Only works on ‘positioned’ elements though so absolute, relative etc.