Design comparison
Solution retrospective
Im unsure of attribution area, forced to the floor by position:absolute. Is there any other solutions that will be more regular?
Community feedback
- @amalkarimPosted about 2 years ago
Hi Woodzy. Congratulations for your first solution in here!
I think, there is a few options about how to place the attribution area. Your
position: absolute;
could work. But be careful, when the height of the web browser is shorter than the page content, the attribution area will overlap with the main content. This could be solved by giving this styles to<div class="wrapper">
:.wrapper { position: relative; padding-top: 50px; padding-bottom: 50px; }
Also, remove its style
height: 100vh;
to make sure it will get its full height no matter the browser height is.Another alternative is by implementing
display: grid;
on<div class="wrapper">
, like this:.wrapper { display: grid; grid-template-rows: 1fr auto; }
Remove wrapper style
height: 100vh;
, then removeposition:absolute;
from the<div class="attribution">
.Last but not least, wrap
<div class="attribution">
inside a<footer></footer>
to get rid of the accessibility report.Hope this helps.
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin 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