Header issue
-
I was trying to make the header stick so it follows me when i scroll.
What i did was that i added “fixed” in here:
.site-header {
clear: both;
width: 90%;
font-size: 16px;
font-size: 1rem;
max-width: 1200px;
margin: 50 auto;
padding: 0;
position: fixed;
color: #000;And it went from this: https://screencast.com/t/rhWedhuclUjx
to this: https://screencast.com/t/8rvCRcwtmG
Now the menu is fixed and that is all good, but the menu text does not show when you scroll because it blends in with the text on the page.
So i was thinking of adding a banner as a header background that follows the menu when you scroll so it looks like the first but stays with me all the way.
I cant find where to do this, can you please help me?
This is the url to the site i am working on if you need to see what i am talking about: https://brandbuzzie.com/rasmusbiasi/
I am pretty new to CSS so most of the things i made i managed to google but this is not something i can make on my own.
Thanks!
- The topic ‘Header issue’ is closed to new replies.