A cleaner way to cover a parent in CSS Skip width:100%; height:100%; top:0; left:0; and just use .overlay { position: absolute; inset: 0; } β inset: 0 stretches the element to all four edges instantly.
#css #WebDevelopment #FrontendDevelopment #CodeTips #programming #uiux #CleanCode #developers