Alin-Muste Posted April 8 Posted April 8 How do we make the "VIEW CATALOGUE" button on the website "postion: fixed" while also not being overlayed by images and text when scrolling down. Z-Index is already at maximum and that doesn't seem to fix it. Site: https://www.biobuilds.com/tourism
Solution abibacon Posted April 8 Solution Posted April 8 Hey @Alin-Muste, looks like it is a z-index issue, you'll want to increase this further. Learn CSS - abibacon.com/css-course Reach out for Custom Coding - abibacon.com Developer & Support Specialist at will-myers.com (Affiliate Link) If you'd like to make a contribution for my time you can Buy Me A Coffee.
Alin-Muste Posted April 8 Author Posted April 8 1 minute ago, abibacon said: Hey @Alin-Muste, looks like it is a z-index issue, you'll want to increase this further. It is z-index 9999999999, what should I change it to?
abibacon Posted April 8 Posted April 8 (edited) Ah okay, the selector may need to be adjusted, what is the CSS you're using? @Alin-Muste Edited April 8 by abibacon Learn CSS - abibacon.com/css-course Reach out for Custom Coding - abibacon.com Developer & Support Specialist at will-myers.com (Affiliate Link) If you'd like to make a contribution for my time you can Buy Me A Coffee.
Alin-Muste Posted April 8 Author Posted April 8 19 minutes ago, abibacon said: Ah okay, the selector may need to be adjusted, what is the CSS you're using? @Alin-Muste This one: @media only screen and (min-width: 661px) { #block-b29d00e9c400b3846cf4 { position: fixed; z-index: 9999999999; bottom: 20px; left: 50%; transform: translateX(-50%); width: 400px; height: 55px; box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3); border-radius: 5px; } }
abibacon Posted April 8 Posted April 8 Hey @Alin-Muste, you'll want to use the '.fe-block-b29d00e9c400b3846cf4' rather than that block id. Learn CSS - abibacon.com/css-course Reach out for Custom Coding - abibacon.com Developer & Support Specialist at will-myers.com (Affiliate Link) If you'd like to make a contribution for my time you can Buy Me A Coffee.
Alin-Muste Posted April 8 Author Posted April 8 19 minutes ago, abibacon said: Hey @Alin-Muste, you'll want to use the '.fe-block-b29d00e9c400b3846cf4' rather than that block id. That seems to do something, however now it doesn't even pass the first section. It gets stuck after that. We want it to keep on the entire site so wherever they are they can just go to the catalogue easily. Thanks for the help by the way!
abibacon Posted April 8 Posted April 8 Hey, if you would like further help feel free to reach out via abi@abibacon.com @Alin-Muste Learn CSS - abibacon.com/css-course Reach out for Custom Coding - abibacon.com Developer & Support Specialist at will-myers.com (Affiliate Link) If you'd like to make a contribution for my time you can Buy Me A Coffee.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment