Topic

#CSS

79 posts tagged “CSS”.

Takina Takina · · 4 min read

CSS :focus-within Explained

The :focus-within pseudo-class styles a parent element when any descendant has focus — perfect for highlighting a form field's container.

#CSS #Web Development #Accessibility
Takina Takina · · 4 min read

CSS field-sizing Property Explained

The CSS field-sizing property lets form controls like textareas grow to fit their content automatically, without JavaScript resize listeners.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

The CSS color-scheme Property, Explained

CSS color-scheme tells the browser which themes a page supports so native form controls, scrollbars, and UI render in dark mode without extra CSS.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS accent-color Explained

The CSS accent-color property recolors native checkboxes, radios, and range inputs without replacing them with custom-built controls.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

Variable Fonts Explained: One File, Every Weight

A variable font packs every weight, width, and style into a single file, controlled with CSS — cutting requests and enabling fluid typography.

#CSS #Web Development #Performance
Takina Takina · · 4 min read

BEM vs Utility-First CSS: Which Naming Wins?

BEM and utility-first CSS (Tailwind's model) solve the same styling problem in opposite ways. How each works, and when to reach for one over the other.

#CSS #Web Development #Frontend
Takina Takina · · 3 min read

CSS overscroll-behavior Explained

overscroll-behavior stops scroll chaining and pull-to-refresh bounce at a container's edge. How the property works and when to use it.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Form Validation Pseudo-Classes Explained

CSS pseudo-classes like :valid, :invalid, :required, and :user-invalid style form feedback natively, without JavaScript watching every keystroke.

#CSS #Web Development #Frontend
Takina Takina · · 5 min read

CSS Containment: The contain Property Explained

The CSS contain property tells the browser an element's layout, paint, or size won't affect the rest of the page — unlocking safe, targeted rendering shortcuts.

#CSS #Web Development #Performance
Takina Takina · · 4 min read

CSS Overflow: Visible, Hidden, Scroll, Auto, Clip

The overflow property controls what happens when content doesn't fit its box. A rundown of visible, hidden, scroll, auto, and clip — and when to use each.

#CSS #Web Development
Takina Takina · · 3 min read

CSS filter Property: Blur, Brightness, and More

The CSS filter property applies blur, brightness, contrast, grayscale, and other graphical effects directly to an element, no image editor required.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS @supports: Feature Queries Explained

CSS @supports lets a stylesheet test whether a browser supports a property or selector before using it. How feature queries work and when to reach for them.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Outline vs Border: What's the Difference?

Outline and border both draw lines around an element, but only one affects layout. Here's when to use each, including for accessible focus states.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS position: sticky Explained

position: sticky toggles between relative and fixed based on scroll position within its containing block — no JavaScript scroll listener required.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

What Is a Design Token? Design Systems Explained

A design token is a named, platform-agnostic value — a color, spacing unit, font size — that keeps design and code in sync across a product.

#Design Systems #CSS #Web Development
Takina Takina · · 3 min read

CSS grid-auto-flow: Dense Packing Explained

grid-auto-flow: dense reorders grid items to fill leftover gaps automatically — how it works, when to use it, and the accessibility tradeoff it hides.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS line-clamp: Truncating Text to N Lines

The line-clamp property truncates text to a fixed number of lines and adds an ellipsis, without JavaScript or a fixed-height container.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

Media Queries vs Container Queries in CSS

Media queries respond to the viewport size; container queries respond to a component's own container. When to reach for each in a responsive layout.

#CSS #Web Development #Frontend
Takina Takina · · 3 min read

CSS @scope Explained: Scoped Styling

CSS @scope limits selectors to a subtree of the DOM, giving native scoped styling without the specificity wars of global stylesheets.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Color Spaces: oklch() vs hsl() vs rgb()

oklch(), hsl(), and rgb() define color differently in CSS. How each works, why oklch is perceptually uniform, and when to reach for which.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Blend Modes: mix-blend-mode Explained

CSS blend modes combine an element's colors with what's behind it, using mix-blend-mode and background-blend-mode instead of extra markup or canvas tricks.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

The CSS :target Pseudo-Class, Explained

CSS :target styles the element whose ID matches the URL fragment, enabling tabs, modals, and highlights with zero JavaScript. How it works, with examples.

#CSS #Web Development
Takina Takina · · 3 min read

The CSS gap Property in Flexbox and Grid

The CSS gap property adds space between flex and grid items without margin hacks, and it works identically across both layout modes.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS :not() Selector Explained

The CSS :not() selector excludes elements matching an argument list from a rule, letting you style everything except specific cases without extra classes.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS object-fit and object-position, Explained

object-fit controls how an image or video is cropped inside its box, and object-position controls which part of it stays visible. How they work together.

#CSS #Web Development #Frontend
Takina Takina · · 5 min read

CSS inherit, initial, unset & revert Explained

CSS's four global keywords control where a property's value comes from. How inherit, initial, unset, and revert differ, with a comparison table.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

Dynamic Viewport Units: dvh, svh, and lvh Explained

dvh, svh, and lvh fix the classic mobile vh bug where browser toolbars cut off full-height layouts. Here's what each unit measures and when to use it.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Grid repeat() and minmax() Explained

repeat() and minmax() let CSS Grid build responsive layouts without media queries. How the two functions combine, and common patterns.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Stacking Contexts and Z-Index Explained

Z-index only compares elements within the same stacking context. What creates a new context, how they nest, and why z-index: 9999 sometimes fails.

#CSS #Web Development #Frontend
Takina Takina · · 5 min read

CSS will-change Explained: Compositing and Performance

The CSS will-change property hints the browser to prepare an element for an upcoming change, moving it to its own compositor layer. When to use it and when not to.

#CSS #Web Development #Performance
Takina Takina · · 4 min read

What Is CSS Houdini? Extending CSS With JS

CSS Houdini is a set of low-level browser APIs that let JavaScript hook into the CSS rendering pipeline itself, instead of working around it.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Grid-Template-Areas: Named Layouts Explained

grid-template-areas lets you name grid regions and place items by name instead of row and column numbers, turning your CSS into a visual map of the layout.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Gradients Explained: Linear, Radial, and Conic

CSS gradients render smooth color transitions directly in the browser — no image files. How linear, radial, and conic gradients work, with practical examples.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

What Is backdrop-filter? Frosted-Glass CSS Effects

backdrop-filter blurs, darkens, or otherwise adjusts whatever sits behind an element, powering frosted-glass UI without extra markup or JavaScript.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Counters Explained: Auto-Numbering Without JS

CSS counters auto-number elements with counter-reset, counter-increment, and the counter() function — no JavaScript or manual list numbers required.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Environment Variables and env() Explained

CSS env() reads values from the browser or device itself, like safe-area insets on notched phones, instead of from your own custom properties.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS :focus-visible vs :focus Explained

:focus-visible only shows a focus ring for keyboard and other non-pointer input, while :focus matches every focus event, including mouse clicks.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Transitions vs Animations: Which to Use

CSS transitions animate a single state change; animations run independent, repeatable keyframe sequences. How to pick the right one for the job.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS clip-path and Masking Explained

clip-path and mask-image clip or fade elements into custom shapes in pure CSS, replacing image editors and SVG sprites for cropping.

#CSS #Web Development #Frontend
Takina Takina · · 3 min read

CSS Scroll Snap Explained

CSS scroll snap locks scrolling to fixed positions using scroll-snap-type and scroll-snap-align, no JavaScript required. Here's how it works.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Anchor Positioning Explained

CSS anchor positioning lets an element attach to another element's edges without JavaScript. How anchor(), position-anchor, and fallbacks work.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS text-wrap: balance, Explained

text-wrap: balance evens out line lengths in headlines using the browser's own layout engine, no JavaScript required. How it works and when to use it.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS @property: Typed Custom Properties Explained

@property registers a CSS custom property with a type, initial value, and inheritance rule — unlocking smooth animation and real error checking.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS aspect-ratio: Sizing Boxes Without Padding Hacks

The CSS aspect-ratio property locks a box's width-to-height ratio in one line, replacing the old padding-top percentage trick. Syntax, gotchas, and use cases.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

What Is Shadow DOM? Encapsulated Web Components

Shadow DOM attaches an isolated DOM tree to an element so a component's styles and markup can't leak in or out. Here's how it actually works.

#Web Development #JavaScript #CSS
Takina Takina · · 4 min read

CSS clamp() and Fluid Typography, Explained

CSS clamp() scales a value smoothly between a minimum and maximum, letting font sizes and spacing flex with the viewport without media queries.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Scroll-Driven Animations Explained

CSS scroll-driven animations tie keyframes to scroll position instead of a clock, running smoothly off the main thread. Here's how the timeline model works.

#CSS #Web Development #Frontend
Takina Takina · · 3 min read

CSS Subgrid Explained: Nested Grids That Align

CSS subgrid lets a nested grid item inherit its parent's row and column tracks, so child elements line up across unrelated components.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

rem vs em vs px: CSS Units Explained

px is a fixed unit, em scales to a parent's font size, and rem scales to the root. How to choose between them for sizing and typography in CSS.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Cascade Layers Explained: The @layer Rule

CSS cascade layers let you group styles into named layers with explicit priority order, so specificity fights between resets, components, and overrides disappear.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

What Is :has() in CSS? The Parent Selector Explained

:has() is CSS's relational pseudo-class — it lets a selector match an element based on what's inside or after it, finally enabling a parent selector.

#CSS #Web Development #Frontend
Takina Takina · · 5 min read

CSS Nesting Explained: Native Nested Selectors

Native CSS nesting lets you nest selectors inside a parent rule without a preprocessor. How the syntax works, the & selector, and specificity gotchas.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Custom Properties: Variables in CSS Explained

CSS custom properties are native variables that cascade, inherit, and update live at runtime. How they work, why they beat preprocessor variables.

#CSS #Frontend #Web Development
Takina Takina · · 5 min read

What Is CSS Specificity? The Cascade, Explained

CSS specificity is the scoring system that decides which rule wins when several target the same element. How the weights work and how to keep them low.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

CSS Grid vs. Flexbox: When to Use Each

Grid and Flexbox aren't rivals — they solve different problems. A simple rule of thumb, with examples, for choosing the right layout tool every time.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

What Is CSS? How the Web Gets Its Style

CSS is the language that styles every web page. Learn how selectors, the cascade, the box model, and modern layout tools like flexbox and grid work.

#CSS #Web Development #Frontend
Takina Takina · · 4 min read

Tailwind CSS v4: The CSS-First Rewrite, Explained

Tailwind v4 rewrites the engine from scratch for dramatically faster builds and moves configuration into CSS itself. Here's what changed and how to work with it.

#CSS #Web Development #Tailwind

← All topics