Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Please tell me how to solve the z-index of footer

P

@codingaring

Desktop design screenshot for the Suite landing page coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What challenges did you encounter, and how did you overcome them?

I thought if I give z-index : 5 to the "work-section" class and give "negative-margin", it might overlap, but it doesn't work the way I want it to. Please help me

Community feedback

@0xabdulkhalid

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have a suggestion regarding your doubt that I believe will be of great interest to you.

PLACING "WORK-SECTION" AS PER DESIGN 💡:

  • " I thought if I give z-index : 5 to the "work-section" class and give "negative-margin", it might overlap, but it doesn't ", Don't worry we can easily place that for half of the bottom using position property.
  • Instead of trying z-index in static position, You can try to set position to relative and then you can able to move on the element for any direction you want (like top, bottom, right etc.)
  • Here's the snippet which might help you,
.work-section {
   position: relative;
   bottom: -29rem;
}
  • Now you can able to see those changes, and another thing to note here is you need to remove margin-top from work-section so that extra white space will be purged.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord