Design comparison
Solution retrospective
why is my body tag overflowing. Also i'm having problem to put my footer at bottom of container div it's same overflows and goes to top,somehow i managed it but still don't know why this happening, anybody can help what's going wrong? thank you. p.s :- inspect element to check body overflow.
Community feedback
- @pikapikamartPosted over 3 years ago
Hey the reason that your elements are overflowing especially when resizing is that, they are position absolute. When you place an element into
position: absolute
, then that element will go out of flow. So how to resolve this problem of occurence? Well you could make the parent container not a display of grid, just make itdisplay: block
so that elements of will have each row and make the element's position eitherposition: relative
orposition: static
. Relative and static is the right flow, and absolute goes out of flow.1@pikapikamartPosted over 3 years agoAlso, maybe removing the
top
properties of the child so that it wont jump. When you make use of it, make sure that the parent container, or the the desired container where you want it to be top, isposition: relative
. So that, that element will be relative according to its parent^0@pikapikamartPosted over 3 years ago@sayedlee just ask if you need more help or clarification^
0
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