Skip to content
Reference

CSS Property Reference

A practical reference to CSS properties, their syntax, common values, and the details that cause real-world bugs. Each page is connected to working effects from the LibraryCSS catalog.

Examples are selected in real time from a catalog of 9,078 effects.

Visuals and effects22

background7917Defines an element's complete background in one declaration: color, image, gradient, position, size, repeat behavior, attachment, and clipping area.border-radius7272Rounds the corners of a box. Each corner can have its own horizontal and vertical radius.box-shadow4198Adds one or more shadows to an element's box. Use `inset` to draw a shadow inside the box.content2843Generates content for `::before` and `::after` pseudo-elements. The pseudo-element is not created unless `content` is specified, even when the value is empty.opacity2351Changes the transparency of an element and all of its descendants. Zero is fully transparent and one is fully opaque.filter2114Applies visual effects such as blur, brightness, hue rotation, and drop shadows. Multiple filter functions run in the written order.outline996Draws a non-layout-affecting line outside an element's border. It is the standard way to communicate keyboard focus.text-shadow646Adds one or more shadows to text. It powers glow, embossed, and layered 3D type effects.background-size623Controls the rendered size of a background image or gradient inside its element.background-position521Sets the position of a background image inside its element.clip-path512Clips an element to a geometric shape. The clipped area becomes invisible and no longer receives pointer events.background-clip425Defines how far an element's background is painted. The `text` value clips the background to the shape of the glyphs.-webkit-background-clip423The vendor-prefixed form of `background-clip`, still commonly included for reliable gradient text rendering.background-image411Places an image or gradient behind an element. Multiple comma-separated layers are allowed, and the first layer is painted on top.-webkit-text-fill-color247Sets the fill color of text independently from `color`. It is commonly used to make the fill transparent for gradient text.backdrop-filter88Applies filters to the content behind an element. It is the foundation of frosted-glass and glassmorphism interfaces.mix-blend-mode86Controls how an element blends with the content beneath it, similar to layer blend modes in image editors.-webkit-backdrop-filter45The vendor-prefixed form of `backdrop-filter`, needed by older Safari versions.mask41Masks an element using the alpha or luminance of an image or gradient. Unlike `clip-path`, a mask can create soft transitions.-webkit-mask39The vendor-prefixed form of `mask`, commonly written alongside the standard property for broader browser support.-webkit-text-stroke34Draws an outline around text glyphs. It is useful for hollow or outlined display type.isolation28Creates a new stacking context so descendants do not blend with content outside the component.

Transforms and animation9

Layout13

Typography11

Box model7

Interaction5