@itush
Posted
Congratulations on completing the challenge! π
It is important to correctly understand CSS Position property to render HTML elements as per the requirement. 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 12 important CSS topics where I discuss about css position, z-index, box-model, flexbox, grid, media queries, mobile-first Workflow etc. in a simple way.
I hope this helps.
Keep at it...π» Happy hacking!
Marked as helpful
@newtothis90
Posted
@itush
Great info! I'll definitely check out your discussion on those topics!