
How to detect a touch device on a website: step by step with CSS @media (hover) and (pointer), matchMedia and pointerType — and why ontouchstart gets it wrong.

Why a CSS transition doesn't work: display none, height auto, a class added in the same frame, and animations turned off. How to check each cause and fix it.

Does your page shift sideways when a modal opens? Here's the cause — a disappearing scrollbar — and the fix with scrollbar-gutter: stable and padding-right.

How to detect an element's size change in JavaScript: step by step with ResizeObserver, why window resize doesn't fire, and how to fix the ResizeObserver loop error.

border vs outline in CSS: the difference, why a border on hover shifts your layout by 2 pixels while outline doesn't, and which to use for focus and cards.

Why a timer or counter jitters and shifts the text beside it: proportional digits, changing digit count, and fonts without tabular-nums. How to fix it.

How to build a pure-CSS carousel with scroll-snap: native swipe on phones, arrows and dots in 20 lines of JS, no slider library and no broken Back gesture.
The Shadow DOM in plain words: why page styles don't apply inside a widget while fonts and colors leak in, and why querySelector can't find a button you can see.
How to make responsive font size in CSS with clamp(): a two-point formula, ready-made values, and why font-size in pure vw refuses to grow when users zoom in.

How to capitalize the first letter of a string in JavaScript and CSS: step by step, with empty strings, leading quotes, Turkish i and names like McDonald.

An input field zooms the page on iPhone because its font size is under 16px. How to check it, how to fix it, and why the maximum-scale advice only hurts.

What line-height is in plain words: how the browser builds a line box, why 1.5 and 150% inherit differently, and what value to use for body text.

What a variable font is: how variation axes replace a dozen files with one, why font-weight 437 exists, and when this actually makes your site faster.

What CSS variables are in plain words: how var() works, why they inherit unlike Sass variables, and the three gotchas that trip up almost everyone.

How to truncate text with CSS: one property isn't enough, you need three. Single-line, multi-line clamping, and the flexbox trap that breaks both.

em vs rem in CSS: what each unit measures against, where em compounds and breaks, and why both ignore your html font-size inside media queries.

Horizontal scrolling on mobile: three real causes and a snippet that names the guilty element instantly. Plus why overflow-x hidden is a bad fix.

What z-index actually is: why a modal with z-index 9999 still slips under the header, what a stacking context is, and how to fix it without bigger numbers.

The CSS box model in plain words: why width 350px renders as 370px, what box-sizing border-box changes, and why four 25% columns don't fit on one line.

CSS container queries in plain words: why @media fails a component in a narrow sidebar, how @container works, and the two traps tutorials skip.

How to center a block horizontally and vertically: margin auto, flex, grid and the new align-content in a plain block. With code and a rule for picking one.

Flexbox vs CSS Grid: the real difference, the criteria to choose on, and the one sign that tells you you picked the wrong layout. With examples and a verdict.

Your 100vh block spills past the phone screen and the button hides under the address bar? Three causes explained: browser bars, the keyboard, the gesture bar.

The safe area is the part of the screen no notch, rounded corner or gesture bar covers. How env() handles it in CSS and what viewport-fit turns off.

prefers-reduced-motion is the Reduce Motion system setting your site reads with one line of CSS. Which motion makes people sick and what you can keep.

Forced colors is the high contrast mode where Windows swaps your site's colors for its own. What breaks, how to test it in a minute, and the CSS fixes.

object-fit: cover vs contain compared on cropping, empty bars, card grids and photos of people. Plus scale-down for logos and object-position.

No focus outline when you press Tab? Four causes: outline: none in your CSS, a clipping parent, a sticky header and color — how to check and fix each.

Tab order is the queue the Tab key follows through links and fields. Where it comes from, why CSS order breaks it, and which tabindex values are safe.

display: none vs visibility: hidden compared on layout space, clicks, Tab, screen readers and animation. Plus a way to hide an element from eyes only.

Your position: sticky header scrolls away with the page? Three common causes — a missing top, overflow on a parent, no room to move — and how to check each.

Step by step: how to build a CSS loading skeleton without a layout jump, without flashing on fast responses, and without breaking accessibility.

Font not loading and your site falls back to a system one? Three real causes: the url() path, a silent CORS block, and a missing subset — with fixes.

You don't redraw a site for dark mode: CSS variables and one media query do 80% of the work. A step-by-step guide to add dark mode from scratch.

How to add dark mode to a website without repainting everything by hand. 4 steps — color variables, a toggle, remembering the choice. AI prompt included.

Why your CSS isn't working: you change a style but the page looks the same. The 3 common causes — cache, specificity, linking — and how to fix each.

Tailwind or plain CSS? We compare on speed, learning curve, and readability — and give a straight answer on who should pick what. Plus why AI almost always writes Tailwind.