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 10,238 effects.

Visuals and effects22

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

Transforms and animation9

Layout13

Typography11

Box model7

Interaction5