Menu

#Element

137 posts

Feed·
20 of 137 posts
LCP lands in the same millisecond as first paint on all 76 of our pages, and our only layout shift is 58px of header
📰
0Read More

LCP lands in the same millisecond as first paint on all 76 of our pages, and our only layout shift is 58px of header

DEV Community: nextjs·Daniel Pertu·4 days ago
#ggGM1lLk
#devtonextjs#devto#dev#pages#element

I measured real paint metrics on every public page: LCP equals FCP every time because the largest element is always text, and the site's entire CLS is one header div that shrinks from 172px to 114px after hydration, which only signed-in visitors ever see.

15s
CSS Do's and Don'ts for Beginners: 10 Habits That Will Make You a Better Web Developer
📰
0Read More

CSS Do's and Don'ts for Beginners: 10 Habits That Will Make You a Better Web Developer

DEV Community: css·Okoye Ndidiamaka·5 days ago
#Ipq5BYeI
#devtocss#devto#dev#dddddd#grid

Are You Making CSS Harder Than It Needs to Be? Imagine you're building your first website. You've...

15s
Use @layer + low-specificity selectors so site overrides don’t turn into selector wars
📰
0Read More

Use @layer + low-specificity selectors so site overrides don’t turn into selector wars

DEV Community: css·Chris Rodriguez·6 days ago
#DIs316TT
#devtocss#devto#dev#id#ids

Use cascade layers to keep a component library in one named layer and site overrides in a later layer, then keep selectors low-specificity with :where() so normal overrides stay simple and testable.

15s
Bach bought sight unseen: ‘We would’ve paid more if we’d seen it first’ | Stuff
🖼️
0Read More

Bach bought sight unseen: ‘We would’ve paid more if we’d seen it first’ | Stuff

#stuff#always#element#risk#property

There’s always an element of risk when you buy a property sight unseen, but the owners of this original 1960s bach in Charteris Bay on Banks Peninsula took a punt.

15s
What validators miss when a coding agent writes your HTML
📰
0Read More

What validators miss when a coding agent writes your HTML

DEV Community: html·Raxy·8 days ago
#e33H4s6E
#devto2#devto#dev#html#skill

Ask a coding agent for a "Save" button and you sometimes get this: <div class="btn"...

15s
Core Web Vitals When Your Hero Section Is an AI Chat
📰
0Read More

Core Web Vitals When Your Hero Section Is an AI Chat

DEV Community: frontend·Ganesh Joshi·9 days ago
#m4sHlJrE
#devtofrontend#devto#dev#element#chat

An AI chat hero is the worst possible LCP element. Here is how to keep LCP, CLS, and INP healthy when the first thing a visitor sees streams in from a model.

15s
CSS Pseudo-Classes & Pseudo-Elements: Features That Make Websites Feel Interactive
📰
0Read More

CSS Pseudo-Classes & Pseudo-Elements: Features That Make Websites Feel Interactive

DEV Community: css·Okoye Ndidiamaka·10 days ago
#QktSEVhC
#devtocss#devto#dev#pseudo#hover

Have you ever hovered over a button on a website and watched it change colour? Maybe a navigation...

15s
The Edge, Man – CodePen
🖼️
0Read More

The Edge, Man – CodePen

#codepen#left#right#element#container

Ryan Mulligan's article Transition to the Other Wide with Container Query Units is some solid CSS catnip for me. Just this base thought is fun to think about: how do you move an element from flush-left to flush-right when the size of the container and…

15s