skip to Main Content

Html – What is causing my box-shadow to not have the size of element?

I tested this in chrome and firefox: :root { --menu-clr-back:#84774d; --menu-clr-text:#eeeeee; --menu-clr-hover-back:#eeeeee; --menu-clr-hover-text:#84774d; --menu-padding: 0.2em; --menu-separator: 2px; --menu-box-shadow:0.1em 0.1em 0.1em #0008; } /* all menu items */ nav>h1 {display:none;} nav ul { color: var(--menu-clr-text); list-style-type:none; margin:0;padding:0; white-space:nowrap; display:flex; } nav…

VIEW QUESTION

Css – Why my sticky position don't work like it should be?

<div className="bg-yellow-200 z-10 "> <div className="flex flex-row h-[1000px] "> <div className="flex flex-col gap-4 w-1/2"> <div className="h-40 w-96 bg-green-200"></div> <div className="h-40 w-96 bg-green-200"></div> <div className="h-40 w-96 bg-green-200"></div> </div> <div className="w-1/2 bg-blue-400 z-50"> <div className="sticky top-0 left-0 right-0 w-40 h-40 bg-red-500 z-50">…

VIEW QUESTION
Back To Top
Search