@itush
Posted
Congratulations on completing the challenge! 🎉
It is important to correctly understand CSS Position property to render HTML elements as per the requirement. I also faced difficulties with position property in my initial projects. Please note:
-
By default, all HTML elements are static (non-positioned elements).
-
By using top, right, bottom, left we can control the final location of an HTML element.
-
Top, right, bottom, left, z-index don’t have any effect on Statically positioned / non-positioned elements.
-
So, basically, we first need to convert a non-positioned element to a positioned element using (relative/fixed/absolute/sticky) then only (top/right/bottom/left/z-index) etc. will work for the targeted element.
You may checkout the following👇 where I discuss about css position, z-index, box-model, flexbox, grid, Media Queries, Mobile-First Workflow etc. in a simple way.
CSS Position Property in Hindi
I hope this helps.
Keep at it...💻 Happy hacking!