Fixed menu
-
I would like to fix the header menu. Can somebody help me with a CSS code to fix these 2 div and look nice when scrolling on every device? The theme we are using is Corporate. Thank you
The blog I need help with is: (visible only to logged in users)
-
Hi there – give this a try in your custom CSS:
.site-header { position: fixed; top: 0; z-index: 10; }Let me know how it goes.
-
The header is now fixed, but the div with the featured image goes behind the fixed div(i canțt see the head of the girl with umbrella)
-
You could give this a try to compensate for that:
/* Add some padding to see more of the top of the hero image */ .site { padding-top: 200px; } /* Add even more padding on smaller screens */ @media screen and (max-width: 900px) { .site { padding-top: 250px; } } -
Hi there, for the header image, what we can do is to change the top background position to bring the image down. Go to Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS. You can adjust the 250px value I have if you wish. 250 seems to be about the farthest we can go though, which is why I added the second rule to change the background color of the #page-header section to white so that there isn’t a band of color at the top of the image.
.cover { background-position: center 250px; } #page-header { background-color: #fff; } -
- The topic ‘Fixed menu’ is closed to new replies.