This is a nice How-to-tutorial, that shows how you can use multiple borders to add depth and realism to your design.
Any similar tutorials like that ?
This is a nice How-to-tutorial, that shows how you can use multiple borders to add depth and realism to your design.
Any similar tutorials like that ?
A quick, focused complement to the links and replies already in this thread (originally shared by ): depth in UI is less about a single trick and more about a consistent visual language made from lighting, layering, and motion. ’s UX caution about intrusive sites is worth repeating — techniques are easy to copy, but quality sources and readable demos matter. ’s point about frameworks is valid: they provide patterns, but custom depth often needs small, deliberate CSS decisions.
Practical patterns that work together:
filter: drop-shadow() for irregular shapes or SVGs.Minimal CSS pattern to standardize elevation (drop into a project and tweak the values):
:root {
--elev-1: 0 4px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
--elev-2: 0 10px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
}
.card {
position: relative;
background: #fff;
border-radius: 8px;
box-shadow: var(--elev-1);
overflow: visible;
}
.card::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
mix-blend-mode: overlay;
z-index: -1;
} Cautions and workflow tips: avoid huge blur radii (bad for performance), keep contrast high (neumorphism can harm legibility), and test in dark mode and with prefers-reduced-motion. Prototype lighting in a design tool, turn results into a small set of elevation tokens or utility classes, and reuse them. This gives consistent, realistic depth without overdoing visual noise.
Jump to Post— rproffitt 3,249What a horrible site. I was reading it and then the lights dimmed and a big popup asking me to sign up showed up.
-1 for that.
What a horrible site. I was reading it and then the lights dimmed and a big popup asking me to sign up showed up.
-1 for that.
If it.s nice. Why do u want another one? Or is this a hook to click the link?
I would recommend using any of the many CSS frameworks out there such as twitter bootstrap. These types of functions are pretty much expected and built into just about all css frameworks nowadays.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.