I have a website. www.gdhinspect.com where everything displays all great as it’s supposed to, with the exception of 2 items both on a iPhone. 1. The mobile menu built with slick nav is not even showing, 2 the hero image is buried up in behind the header. I’ve tried setting a z-index and top padding to no avail. Help would be appreciated.
Most of those are pretty harmless, but number 10 (Stray end tag div. From line 155, column 2; to line 155, column 7) is a real issue and must be fixed.
The z-index of the menu button needs to be higher than the z-index of the fixed positioned menu which has a 999 z-index.
At width of 766px and smaller you add a fixed positioned menu which means that the content of the page slides under the menu to the top of the viewport because fixed positioned elements are removed from the flow. This is the problem with fixed positioned elements.
A quick fix is to add some padding to the top of the body when the fixed nav is visible to offset the height of the fixed nav.
Here are both fixes.
.slicknav_btn{z-index:1000;}
@media screen and (max-width:766px){
body{padding-top:73px;}
}
I’ve called it a quick fix because its a magic number fix that relies on the header being a set height which may not be true if users zoom text or you add more content later. However as you only have 2 items in the header it may be good enough.
Seems to be getting much closer. It will display in iPhone when turned sideways just not vertical. the menu still does not appear. The hero image is all good to go now. Thanks for that fix