cjhickey Posted July 21, 2016 Share Posted July 21, 2016 i'm using "w3-include-html" to put a common nav-bar at the top of my pages but the drop-downs don't appear over the parent/main page. does anyone know how to solve that? Link to comment Share on other sites More sharing options...
dsonesuk Posted July 21, 2016 Share Posted July 21, 2016 Give nav include position: relative; and a z-index: value that should force it to be a layer level above other elements. 1 Link to comment Share on other sites More sharing options...
cjhickey Posted July 27, 2016 Author Share Posted July 27, 2016 thanks for the response. that doesn't work for me Link to comment Share on other sites More sharing options...
cjhickey Posted July 27, 2016 Author Share Posted July 27, 2016 here's my script <html> <head> <script src="http://www.w3schools.com/lib/w3data.js"></script> <style> div { position: relative; z-index: 9999; } </style> </head> <body> <div w3-include-html="N.html"></div> <script> w3IncludeHTML(); </script> </body> </html> Link to comment Share on other sites More sharing options...
dsonesuk Posted July 27, 2016 Share Posted July 27, 2016 All you are doing there is giving all div elements z-index 9999, instead of targeting specific div with specific class. Link to comment Share on other sites More sharing options...
cjhickey Posted July 29, 2016 Author Share Posted July 29, 2016 ok, it was the only one... still not working when i make it unique. are you sure it can work? be great if so Link to comment Share on other sites More sharing options...
dsonesuk Posted July 29, 2016 Share Posted July 29, 2016 Yes! It will work, if what you are trying to achieve is what I imagine and as you described. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now