CSS glossary
159 terms found
Glossaries
:has()
CSSA CSS functional pseudo-class that selects an element when a condition about its descendants or internal structure is true.
A form can use `form:has(:invalid)` to dim the submit button while any field is invalid.
:is()
CSSA functional selector that groups multiple selector options into one rule while keeping the highest specificity among the arguments.
Instead of repeating three link rules, you can write `:is(header, main, footer) a` once.
:not()
CSSA functional selector that excludes one or more matching cases from a broader rule.
A neutral button style can target `.button:not(.button--primary, .button--danger)` instead of creating extra helper classes.
:where()
CSSA functional selector that groups selector options but always contributes zero specificity.
A base rule such as `:where(.card, .panel) h3` stays easy to override later.
Anchor Positioning
CSSA modern CSS positioning model that lets one element align itself to another named element without manual JavaScript coordinate calculations.
A tooltip can use Anchor Positioning to stay attached to its trigger even when the layout shifts.
Animation Range
CSSThe CSS setting that defines which segment of a scroll or view timeline should drive an animation.
A reveal effect can begin at `entry 10%` and finish at `cover 30%` by adjusting its animation range.
Aspect Ratio
CSSThe proportional relationship between an element's width and height, often used to keep media blocks visually consistent.
A card grid can use a 4:3 aspect ratio so every image area stays aligned even when the original photos are different sizes.
attr()
CSSA CSS function that reads an attribute value from the HTML and injects it into generated content.
A badge can use `content: attr(data-label)` to show a small status label.
Auto Fit
CSSA Grid repetition mode that collapses empty tracks and lets occupied ones stretch when extra space is available.
A card grid can use `repeat(auto-fit, minmax(220px, 1fr))` to adapt fluidly across screen sizes.
Autoprefixer
CSSA build tool that adds the vendor prefixes still required by the browsers you support, based on your target configuration.
Instead of writing `-webkit-` rules by hand, a team can let Autoprefixer generate only the necessary prefixes.
Backdrop Filter
CSSA CSS effect that processes the pixels behind an element, often used for frosted-glass panels and translucent overlays.
A translucent modal can use `backdrop-filter: blur(10px)` to soften the content behind it.
Background Clip
CSSA property that controls how far the background is painted, for example inside the padding box or across the border box.
A gradient border effect can use `background-clip` logic to separate the fill area from the border area.
Background Layer
CSSOne of the stacked background declarations in CSS, where the first layer is painted on top and later layers sit underneath.
A hero can combine a dark gradient overlay, a photo and a solid fallback color as three background layers.
BEM
CSSBlock Element Modifier. Naming methodology for writing more predictable CSS classes.
`card__title--active` follows the BEM naming pattern.
Bootstrap
CSSA frontend framework that provides a responsive grid, utility classes and ready-made interface components for building web layouts quickly.
A team can use Bootstrap cards, spacing utilities and grid columns to assemble a dashboard without styling every pattern from scratch.
Border Image
CSSA CSS feature that paints an element border using an image, SVG or gradient sliced into corners and edges.
A pricing card can use `border-image` with a gradient to create a richer frame than a flat border color.
Border Image Slice
CSSThe `border-image` parameter that controls how the source graphic is cut before being mapped onto the element border.
Gradients often start with `border-image-slice: 1`, while textured frames may need larger slice values.
Box Shadow
CSSA CSS property that adds one or more shadows to an element using offset, blur, spread and color values.
A card can use a soft `box-shadow` to feel elevated above the page background.
Breakpoint
CSSScreen width threshold where a responsive layout changes its rules.
A design can switch from one column to two columns after a tablet breakpoint.
Browserslist
CSSThe shared configuration used by frontend tools to define which browsers and versions a project targets.
A project can tell PostCSS, Autoprefixer and bundlers to optimize for the same browser support matrix through Browserslist.
Calc()
CSSA CSS math function used to combine compatible units in a single computed value.
A container can use `width: calc(100% - 2rem)` to keep side breathing room without extra wrappers.
Card Component
CSSA reusable UI block that groups media, text and actions into one self-contained preview or information unit.
A course card can show a thumbnail, title, summary and CTA without forcing the user to open the full page first.
Cascade
CSSThe browser's conflict-resolution system for deciding which CSS rule wins when several affect the same element.
If two rules target the same button, the cascade decides which background color is used.
Cascade Layer
CSSAn ordered CSS layer declared with `@layer` that lets architecture determine priority before specificity is considered.
A utility class can beat a more specific selector if it lives in a higher-priority layer.
Checkbox Hack
CSSA CSS interaction technique that uses a hidden checkbox or radio input plus selectors such as `:checked` to toggle visible UI state without JavaScript.
A basic mobile menu can open by styling `.menu` when a hidden checkbox becomes checked through its label.
Checker Pattern
CSSA repeated Grid-based surface made of alternating cells, often used for technical or decorative backgrounds.
A checker pattern can be generated with Grid by repeating equally sized cells and varying opacity.
Chroma
CSSThe intensity or purity of a color in models such as OKLCH, separate from its lightness and hue.
Reducing chroma moves a vivid accent toward a calmer, grayer version of the same hue.
Clamp()
CSSA CSS function that keeps a value fluid between a minimum and a maximum limit.
A heading can use `font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem)` to scale smoothly without becoming too small or too large.
Class Selector
CSSA selector that starts with a dot and targets all elements sharing a class name.
`.btn` is a class selector that can style every button with that reusable class.
Coarse Pointer
CSSAn input type detected by media queries that usually represents touch interaction and benefits from larger tap targets.
A button can gain extra padding under `@media (pointer: coarse)` for easier mobile interaction.
Color
CSSUse of color choices and relationships inside a visual system.
Poor contrast between foreground and background colors can hurt accessibility.
Color Palette
CSSA coordinated set of colors selected to work together across the interface and often exported as reusable tokens.
A UI generator can export a palette with primary, secondary and neutral tokens for a design system.
Color Scheme
CSSA browser hint exposed by the `color-scheme` property that tells the user agent whether the interface is designed for light, dark or both themes.
When a page sets `color-scheme: dark`, form controls and scrollbars can align better with the dark interface.
Component Library
CSSA curated set of reusable interface components that helps teams build products with more consistency and less duplicated styling work.
Using a component library for cards, buttons and forms helps a product team move faster without redefining the same UI patterns on every screen.
Conditional CSS Function
CSSA CSS function such as `if()` that chooses one value or another according to a logical condition.
A button can decide its background color from a variable instead of relying on separate status classes.
Conic Gradient
CSSA gradient that rotates around a center point, useful for rings, charts and expressive circular effects.
A progress ring can use a `conic-gradient()` to represent completion visually.
Contain Intrinsic Size
CSSA CSS property that provides a placeholder size for content whose real rendering work is being deferred.
A deferred comments section can reserve 600 pixels of space with `contain-intrinsic-size` so the page does not jump later.
Container Query
CSSA CSS feature that lets a component adapt to the size of its own container instead of the global viewport.
A product card can switch to a two-column internal layout only when its parent container becomes wide enough.
Container Type
CSSThe CSS property that turns an element into a queryable container for its descendants.
A wrapper can use `container-type: inline-size` so the card inside reacts to the wrapper width.
Container Unit
CSSA CSS length unit such as `cqi` or `cqw` that is measured relative to the size of a query container.
A widget title can use `3cqi` so the text grows with the width of the widget instead of the viewport.
Content Visibility
CSSA CSS optimization feature that lets the browser skip layout and paint work for off-screen content until it gets close to the viewport.
A long article can defer heavy sections below the fold with `content-visibility: auto` to improve the initial render.
Cross Axis
CSSThe axis perpendicular to the main axis in Flexbox, used by properties such as `align-items`.
If a Flexbox container uses `flex-direction: column`, the cross axis becomes horizontal.
CSS
CSSCascading Style Sheets. Language used to style and visually organize web pages.
With CSS you can change colors, typography, spacing and responsive layout behavior.
CSS Containment
CSSA group of CSS mechanisms that limit how much layout, paint or size calculation work an element can affect outside its own boundaries.
A complex widget can become cheaper to render when containment prevents it from forcing unnecessary recalculations elsewhere on the page.
CSS Mask
CSSA CSS technique that controls which parts of an element remain visible by applying a mask image or gradient.
A spotlight reveal can use `mask-image: radial-gradient(...)` to keep only the center visible.
CSS Modules
CSSA styling approach where class names are scoped locally to a component file so styles do not leak globally by default.
A button component can use a local `.button` class without worrying that another `.button` elsewhere in the project will collide with it.
CSS Nesting
CSSA native CSS feature that allows related selectors to be written inside a parent rule, reducing repetition and grouping component logic more clearly.
A `.card` block can contain its nested heading and hover styles instead of repeating `.card` in separate rules.
CSS Reset
CSSA baseline stylesheet that removes or reduces browser default styles so the project starts from a more controlled foundation.
A reset often removes default margins and applies `box-sizing: border-box` globally.
CSS Rule
CSSA block made of a selector plus one or more declarations that define how matching elements should look.
`.card { padding: 1rem; }` is a CSS rule.
CSS Selector
CSSThe part of a CSS rule that decides which HTML elements the declarations apply to.
`.featured` is a selector that targets every element with that class.
CSS Shape
CSSA geometric form built with CSS properties such as borders, gradients, border radius or transforms instead of using an image asset.
A triangle can be built with borders while a circle can come from `border-radius: 50%`.
Curated Resource List
CSSAn intentionally selected collection of references, tools and practice sites organized so developers can find the right learning or debugging source faster.
A curated resource list might point you to MDN for syntax, Can I Use for support and CodePen for quick experimentation.
Custom Property
CSSA CSS variable declared with a `--name` syntax and consumed with `var(--name)`.
A button can read `var(--color-accent)` instead of hardcoding its background color.
Dark Mode Token
CSSA theme variable such as background, surface or text color that changes between light and dark contexts.
Instead of styling each card twice, a project can switch `--surface` and let every component inherit the new tone.
Design Token
CSSA reusable named value that represents a design decision such as color, spacing, radius or typography.
A token like `--space-md` can be reused across cards, forms and modals to keep spacing consistent.
Design Tokens
CSSNamed design variables for things like color, typography, spacing and border radius.
Variables such as `--color-primary` or `--space-4` are design tokens.
Disclosure Pattern
CSSAn interface pattern where hidden content is revealed on demand through a trigger such as a button, summary or toggle control.
A compact mobile menu built with `details` uses a disclosure pattern to reveal links only when the user asks for them.
Document Flow
CSSThe normal order and spatial behavior the browser uses to lay out elements before special positioning or layout rules alter it.
A block element pushing the next element onto a new line is part of normal document flow.
Drop Shadow
CSSA filter function that creates a shadow from the visible shape of an element instead of from its rectangular box.
An avatar PNG with transparency can use `drop-shadow()` so the shadow follows the real silhouette.
Easing Curve
CSSThe speed pattern of a transition or animation, expressed with keywords such as `ease` or with a custom `cubic-bezier()` curve.
A button hover can feel softer with `ease-out` than with a linear motion curve.
Elevation Token
CSSA reusable shadow variable that represents one depth level in an interface, such as a base card state or a hover state.
A design system can define `--shadow-1`, `--shadow-2` and `--shadow-3` so every component uses the same elevation scale.
Feature Query
CSSA conditional CSS query built with `@supports` that checks whether the browser understands a feature before applying related styles.
A layout can upgrade from Flexbox to Grid only when `@supports (display: grid)` is true.
Featured Tile
CSSA block inside a repeating layout pattern that is intentionally given more size or emphasis than its neighbors.
A featured tile in a Flex pattern might use `flex-grow: 2` while the surrounding tiles use `flex-grow: 1`.
Flex Basis
CSSThe initial size of a flex item before free space is distributed or items are shrunk.
A card can use `flex: 1 1 180px` so `180px` acts as the preferred starting width.
Flex Wrap
CSSA Flexbox property that decides whether items stay on one line or wrap onto multiple lines when space runs out.
A row of cards can use `flex-wrap: wrap` so items flow onto a new line on smaller screens.
Flexbox
CSSCSS layout model designed to distribute space and align items inside one dimension efficiently.
Flexbox can center a button group with `justify-content` and `align-items`.
Fluid Layout
CSSA layout approach that adapts continuously to available space instead of relying on fixed widths and too many rigid breakpoints.
A fluid layout can use `width: min(100% - 2rem, 1100px)` to stay flexible across devices.
Fluid Typography
CSSA type sizing approach that scales smoothly across screen sizes, often using `clamp()` instead of abrupt jumps between breakpoints.
A main heading can use `clamp()` so it grows naturally from mobile to desktop.
Gallery Layout
CSSA visual arrangement system for groups of images or media items, usually designed to balance consistency, scanning speed and rhythm.
A gallery layout built with Grid can adapt the number of columns automatically while keeping the thumbnails evenly spaced.
Gradient Token
CSSA reusable CSS variable that stores a gradient declaration so the same visual treatment can be reused across components.
A project can define `--gradient-main` once and reuse it in heroes, buttons and badges.
Grid
CSSLayout system that organizes content into rows and columns.
CSS Grid can build complex card layouts with explicit control over tracks and gaps.
Grid Area
CSSA rectangular section of a Grid layout that can span multiple cells and be named for easier placement.
A page layout can define `header`, `sidebar` and `content` as named Grid areas.
Grid Density
CSSThe perceived compactness of a Grid pattern based on track count, cell size and gap.
Reducing cell size and gap increases the density of a technical background pattern.
Grid Track
CSSThe space between two adjacent Grid lines, forming one row or one column in the layout.
A layout with three columns has three column tracks separated by Grid lines.
Hamburger Menu
CSSA compact mobile navigation trigger typically represented by three horizontal lines.
On narrow screens, a navbar can replace the visible links with a hamburger button that opens the menu.
Inline SVG
CSSAn SVG embedded directly in the HTML markup so its internal shapes can be targeted with CSS and JavaScript.
An inline SVG icon can change `fill` on hover without swapping image files.
Inset Shorthand
CSSA CSS shorthand that combines `top`, `right`, `bottom` and `left` into one property.
A modal can use `inset: 0` instead of four separate offset declarations.
Interpolate-size
CSSA CSS property that allows transitions and animations to interpolate intrinsic size keywords such as `auto`.
An accordion can animate from `height: 0` to `height: auto` without using a fake `max-height` workaround.
Intrinsic Size Keyword
CSSA size value such as `auto`, `min-content` or `max-content` that depends on layout and content rather than a fixed numeric length.
A panel that expands to `auto` is using an intrinsic size keyword instead of a hard-coded pixel height.
ITCSS
CSSInverted Triangle CSS. Method for structuring styles from generic, low-specificity layers to specific component rules.
ITCSS can place resets and tokens first, and component-level rules later.
Keyframes
CSSNamed animation steps defined with `@keyframes` that describe how properties change over time.
A pulse effect can define states at 0%, 50% and 100% inside a `@keyframes` block.
Layered Shadow
CSSA shadow composed of multiple `box-shadow` layers with different blur, spread and opacity values to create more realistic depth.
A modal can use one tight shadow and one wider diffuse shadow to feel lifted without looking harsh.
Linear Gradient
CSSA gradient that transitions colors along a straight line and is often used for buttons, backgrounds and directional overlays.
A CTA can use `linear-gradient(135deg, #2563eb, #7c3aed)` as its background.
Main Axis
CSSThe primary direction in a Flexbox layout, determined by `flex-direction`, along which `justify-content` distributes items.
In a default row layout, the main axis runs horizontally from left to right.
Mask Image
CSSThe property that defines the image or gradient used to mask the visibility of an element.
A card image can fade out at the bottom with `mask-image: linear-gradient(...)`.
Max()
CSSA CSS function that resolves to the largest value from the list you provide.
A sidebar can use `max(220px, 24vw)` so it never becomes too narrow.
Media Query
CSSA CSS rule that applies styles only when a condition such as width, orientation or user preference is true.
A layout can switch from one column to two with `@media (width >= 768px)`.
Micro-interaction
CSSA small animated response that gives feedback during a focused user action such as hover, click or focus.
A card that lifts by 2 pixels on hover is using a micro-interaction to signal interactivity.
Microtypography
CSSSmall typographic refinements such as line length, underline offset, decoration thickness or letter spacing that improve readability.
Adjusting `text-underline-offset` can make links clearer without making the paragraph look noisy.
Min()
CSSA CSS function that resolves to the smallest value from the list you pass in.
A page shell can use `min(100% - 2rem, 1200px)` to stay fluid but capped.
Mixin
CSSA reusable Sass block that groups multiple declarations and can optionally accept arguments before being included in components.
A button system can use one mixin for padding, radius and font weight instead of repeating those declarations in every variant.
Mobile First
CSSA responsive strategy where small-screen styles are written as the base layer and larger layouts are added progressively.
A card list can start with one column by default and expand to two or four columns at wider breakpoints.
Mobile-First
CSSDesign approach that starts with the smallest screens and progressively enhances larger layouts.
A mobile-first stylesheet defines the base layout for phones and adds larger breakpoints later.
Navbar Toggler
CSSThe button that opens and closes a collapsed navigation menu in responsive layouts.
A navbar toggler should update `aria-expanded` as the menu opens and closes.
Nesting Selector
CSSThe `&` symbol used in nested CSS to reference the current parent selector.
Inside a button block, `&:hover` refers to the hover state of that same button.
Normal Flow
CSSThe default layout behavior in which elements take up space and influence the placement of other elements around them.
A relatively positioned element still keeps its original place in the normal flow even after a visual offset.
Normalize.css
CSSA popular stylesheet that preserves useful browser defaults while smoothing common inconsistencies across rendering engines.
A team may choose normalize.css instead of a full reset to keep form and heading defaults more intact.
Off-canvas Navigation
CSSA navigation pattern where the menu lives outside the visible screen and slides in when activated.
A mobile panel can start with `transform: translateX(100%)` and slide in from the right when the menu opens.
OKLCH
CSSA modern CSS color space based on Lightness, Chroma and Hue, designed to behave more consistently with human perception.
A palette can keep the same lightness and chroma while rotating the hue to produce equally balanced accents.
OOCSS
CSSObject-Oriented CSS. Methodology that encourages reusable styling patterns and separation of structure from skin.
OOCSS might define one reusable object for layout and another for theme styling.
Optical Size
CSSA variable-font axis that adjusts letterforms for better readability at different rendered sizes.
A typeface with an `opsz` axis can look sharper in small UI labels and more elegant in large headings.
Overlay
CSSA visual layer placed on top of media or content to reveal extra information, controls or emphasis.
A portfolio card can show an overlay with the project title and CTA only when the user hovers the image.
Partial
CSSA Sass file meant to be imported into other Sass files so styles can be split into smaller, organized modules.
A project might keep color tokens in one partial and button patterns in another to make the styling architecture easier to maintain.
Pattern Rhythm
CSSThe repeated visual cadence created by varying size, spacing or emphasis across a layout pattern.
A Flex pattern can increase the grow value every third item to create a repeating visual rhythm.
Perspective
CSSA CSS property that controls how strong the illusion of depth looks in 3D transformed elements.
A flipping card often uses `perspective: 1000px` on the parent to create a readable 3D effect.
Place Items
CSSA Grid shorthand that combines `align-items` and `justify-items` to align content inside each grid area.
A modal wrapper can use `place-items: center` to center its child in both axes with one declaration.
Popover API
CSSA browser API for showing and hiding lightweight overlays such as menus, panels or floating UI without building every behavior from scratch.
A mobile menu can use the Popover API to open and close a panel with native behavior instead of a custom toggle system.
Position Anchor
CSSThe CSS relationship created when an overlay points to a named anchor element with `position-anchor`.
A help bubble can declare `position-anchor: --help-button` so its coordinates come from the related button.
Positioned Ancestor
CSSThe nearest ancestor with a non-static `position` value, used as the reference point for absolutely positioned descendants.
A badge with `position: absolute` usually needs a card parent with `position: relative` to anchor itself correctly.
Positioning Context
CSSThe reference box an absolutely positioned element uses to calculate where it should appear.
A badge inside a card can align to the card corners when the card creates a positioning context with `position: relative`.
PostCSS
CSSA CSS processing tool that transforms stylesheets during the build step through a plugin-based pipeline.
A project can use PostCSS to add prefixes, enable modern syntax and optimize output without changing the authoring workflow.
postcss-preset-env
CSSA PostCSS plugin bundle that lets you use modern CSS features and converts them into a more compatible output based on your target environment.
A team can write future-friendly CSS while `postcss-preset-env` handles the necessary fallback transformations in the build.
Preserve-3d
CSSThe `transform-style` value that allows child elements to keep their 3D position instead of being flattened.
Without `transform-style: preserve-3d`, the two faces of a 3D card often collapse into the same plane.
Progressive Enhancement
CSSA strategy that starts from a solid, broadly compatible base and adds richer features only when the environment supports them.
A card grid can remain usable with Flexbox everywhere and become more refined with Grid in modern browsers.
Property Registration
CSSThe act of defining a custom property with `@property` so the browser knows its type, inheritance behavior and initial value.
Registering `--angle` as an `<angle>` lets the browser animate a conic gradient more reliably.
Pseudo-element
CSSA virtual CSS-generated element such as `::before` or `::after` that lets you add decorative boxes without changing the HTML.
A button can use `::after` to render an animated underline without adding extra markup.
Range Syntax
CSSThe modern media query syntax that expresses comparisons like `(width >= 768px)` or `(600px <= width <= 1024px)` more directly.
Range syntax makes it easier to read responsive rules than chaining `min-width` and `max-width` with `and`.
Reduced Data
CSSA user preference exposed through `prefers-reduced-data` that suggests lighter assets and fewer bandwidth-heavy enhancements.
A landing page can hide a decorative hero video when reduced data is requested.
Reduced Motion
CSSA user preference exposed through `prefers-reduced-motion` that signals the interface should minimize animation and transitions.
A site can disable parallax and long fades when a user prefers reduced motion.
Relational Selector
CSSA selector pattern that styles an element according to its relationship with descendants or nearby structure rather than only matching the element directly.
A card that changes only when it contains an image is using a relational selector pattern.
Responsive
CSSDesign approach where the interface adapts cleanly to different screen sizes and devices.
A responsive site remains readable on mobile, tablet and desktop screens.
Responsive Table
CSSA table styled to remain usable on smaller screens through patterns such as horizontal scrolling or stacked rows.
A pricing table can sit inside a wrapper with `overflow-x: auto` so columns stay readable on mobile.
Revert-layer
CSSA CSS value that resets a property back to the value it would have had before the current layer applied its override.
A neutral button variant can use `color: revert-layer` to fall back to the base layered value.
Sass
CSSCSS preprocessor that adds features such as variables, nesting and reusable logic.
Sass makes it easier to keep large style systems organized and maintainable.
Scroll Snap
CSSA CSS feature that lets scroll containers snap their content to defined positions, making sliders and horizontal galleries feel more controlled on touch devices.
A mobile slider can use `scroll-snap-type: x mandatory` so each slide settles cleanly instead of stopping between items.
Scroll Timeline
CSSA timeline whose progress comes from the scroll position of a container instead of from elapsed time.
A reading bar can grow from 0 to 100% as the page scrolls because its animation follows a scroll timeline.
Selector Query
CSSA support check written with `@supports selector(...)` to detect whether a browser understands a specific selector.
You can ask whether `:has()` is supported before relying on it in a component pattern.
Shared Tracks
CSSParent Grid rows or columns that are reused by child components through `subgrid` so multiple modules follow the same guides.
Shared tracks help repeated cards align their headings, media and actions across the full row.
Sidebar Navigation
CSSA lateral navigation pattern that keeps section links visible beside the main content, often used in documentation, dashboards or long lessons.
A course page can use sidebar navigation to show the current section and let the user jump quickly to another topic.
SMACSS
CSSScalable and Modular Architecture for CSS. System for organizing styles into clear categories.
SMACSS separates base, layout, module, state and theme layers.
Spacing
CSSDistribution of space between and inside interface elements.
Padding and margin are core CSS properties for spacing decisions.
Stacking Context
CSSAn isolated layering context that controls how `z-index` works among a set of elements.
A transformed parent can create a new stacking context, causing an internal `z-index: 999` to stay below elements outside it.
Sticky Footer
CSSA page-layout pattern where the footer stays at the bottom of the viewport on short pages without overlapping content.
A documentation page with very little content can still keep its footer at the bottom by using a flex column layout and `margin-top: auto`.
Sticky Header
CSSA header that remains visible near the top edge of the viewport while the page scrolls, usually through `position: sticky`.
A sticky header keeps the brand and main navigation available while the user reads a long article.
Sticky Threshold
CSSThe offset value, such as `top: 0`, at which a sticky element stops scrolling normally and starts sticking.
A sidebar with `position: sticky` and `top: 1rem` sticks once it reaches that 1rem threshold.
Stroke Dasharray
CSSAn SVG stroke setting that defines the visible dash pattern along a path and is often paired with animation for draw effects.
A path can use `stroke-dasharray: 160` to prepare a line-drawing animation.
Style Query
CSSA container query that reacts to a style value, such as a custom property, instead of reacting only to size.
A card can switch its layout when its container exposes a style variable like `--variant: 'compact'`.
Subgrid
CSSA Grid feature that lets a child grid inherit the row or column tracks of its parent for tighter alignment across nested components.
A card list can use `subgrid` so all buttons align to the same baseline even when titles have different heights.
Tailwind
CSSUtility-first CSS framework for building custom interfaces quickly with small reusable classes.
A class such as `flex justify-center` applies layout behavior directly in the markup.
Text Shadow
CSSA CSS property that adds shadow to text, often to improve readability on images or expressive backgrounds.
A hero title on top of a gradient can use `text-shadow` to separate the letters from the backdrop.
Text Wrap Balance
CSSA `text-wrap` value that distributes short text across lines more evenly to avoid awkward final lines.
A hero heading can use `text-wrap: balance` so the last line does not collapse into a single short word.
Text Wrap Pretty
CSSA `text-wrap` value that improves paragraph endings by trying to avoid lonely final words.
An article intro can use `text-wrap: pretty` to reduce awkward orphaned words in the last line.
Thumbnail
CSSA reduced visual preview image used inside cards, galleries or listings to represent larger content.
A gallery grid usually relies on thumbnails so users can scan many images quickly before opening one in full.
Transform Origin
CSSThe pivot point around which a transformed element rotates, scales or skews.
A dropdown can feel more believable when it opens from `top center` instead of rotating from the middle.
Type Scale
CSSSystem of text sizes built on consistent proportions.
A page can define heading and body text through a modular type scale.
Typed Custom Property
CSSA custom property whose value type has been declared explicitly, allowing validation and smoother interpolation.
A typed custom property can represent a percentage for a progress bar instead of an opaque text string.
Typography
CSSPractice of choosing and organizing type to improve readability, hierarchy and tone.
A strong heading scale makes a page easier to scan.
Utility-first
CSSA styling philosophy that composes interfaces from many small single-purpose utility classes instead of relying mainly on custom semantic CSS selectors.
A card built with classes for spacing, color, border radius and shadow directly in the markup follows a utility-first approach.
Validation Pseudo-class
CSSA pseudo-class such as `:valid`, `:invalid` or `:required` that reflects native HTML form validation state.
An input can show a green border when `:valid` and a red one when `:focus:invalid`.
Variable Font
CSSA font file that contains a range of styles or axes, allowing fine-grained control over weight, width, slant or optical size.
Instead of loading several font files, a project can use one variable font and set `font-weight: 532` directly in CSS.
Vendor Prefix
CSSA browser-specific prefix such as `-webkit-`, `-moz-` or `-ms-` added to a property or value during a feature rollout period.
Older Safari support for visual effects sometimes relied on a vendor prefix before the standard form was safe to use everywhere.
View Timeline
CSSA scroll-linked timeline based on how a specific element enters, covers or exits the viewport or another scroll area.
A card can fade in only while it moves through the visible part of the page by using a view timeline.
View Transition
CSSA browser-managed animation between an old UI state and a new one, usually triggered when content or navigation changes.
A route change can animate as a smooth slide instead of a hard visual swap by using a view transition.
View Transition Name
CSSThe CSS property used to identify a specific element so it can participate independently in a view transition.
A gallery image can keep visual continuity between states when both versions share the same view-transition name.
Viewport Anchor
CSSA positioning relationship in which an element stays tied to the browser viewport instead of to the document flow or a local container.
A support button in the bottom-right corner often uses `position: fixed` as a viewport anchor.
Viewport Meta Tag
CSSAn HTML meta tag that tells mobile browsers to use the real device width so responsive layouts behave correctly.
Without the viewport meta tag, a phone may simulate a much wider layout and break your media query logic.
Visual Composition
CSSThe arrangement of shapes, layers and spacing so an interface element or illustration feels balanced and readable.
When drawing with CSS, visual composition matters as much as the individual shapes because the eye reads the whole scene together.
Whitespace
CSSIntentional empty space that improves readability, rhythm and visual hierarchy.
Increasing whitespace around a form can reduce visual clutter and cognitive load.
Will Change
CSSA CSS hint that tells the browser which properties of an element are likely to change soon, so it can prepare internal optimizations in advance.
A card about to animate on hover can use `will-change: transform` to avoid a visible stutter at the start.
No terms match the current search.