TL
Tool Lab
💰Donare
💰Donare

CSS Properties Reference

Comprehensive CSS property reference — flexbox, grid, typography, animation, and more.

52 proprietà

displayLayout

Defines how element is rendered in the document.

block | inline | flex | grid | inline-flex | inline-grid | none | contents
positionLayout

Specifies positioning method.

static | relative | absolute | fixed | sticky
top / right / bottom / leftLayout

Offset for positioned elements.

<length> | <percentage> | auto
floatLayout

Moves element to left/right of container.

left | right | none | inline-start | inline-end
clearLayout

Specifies what happens with the element next to a floated element.

none | left | right | both | inline-start | inline-end
z-indexLayout

Sets stacking order of elements.

auto | <integer>
overflowLayout

Controls content that overflows element box.

visible | hidden | scroll | auto | clip
width / heightModello a scatola

Sets element dimensions.

<length> | <percentage> | auto | min-content | max-content | fit-content
max-width / max-heightModello a scatola

Sets maximum element dimensions.

<length> | <percentage> | none | min-content | max-content
min-width / min-heightModello a scatola

Sets minimum element dimensions.

<length> | <percentage> | auto | min-content | max-content
marginModello a scatola

Space outside the element border.

<length> | <percentage> | auto (shorthand: top right bottom left)
paddingModello a scatola

Space between content and border.

<length> | <percentage> (shorthand: top right bottom left)
borderModello a scatola

Shorthand for border-width, border-style, border-color.

<border-width> || <border-style> || <color>
border-radiusModello a scatola

Rounds corners of element border box.

<length> | <percentage> (1-4 values for corners)
box-sizingModello a scatola

How width/height is calculated.

content-box | border-box
box-shadowModello a scatola

Adds shadow effects around element frame.

<offset-x> <offset-y> <blur> <spread> <color> | inset | none
flex-directionFlexbox

Sets main axis of flex container.

row | row-reverse | column | column-reverse
flex-wrapFlexbox

Whether flex items wrap onto multiple lines.

nowrap | wrap | wrap-reverse
justify-contentFlexbox

Alignment along main axis.

flex-start | flex-end | center | space-between | space-around | space-evenly
align-itemsFlexbox

Default alignment along cross axis.

stretch | flex-start | flex-end | center | baseline
align-contentFlexbox

Multi-line flex container alignment.

flex-start | flex-end | center | space-between | space-around | stretch
flexFlexbox

Shorthand for flex-grow, flex-shrink, flex-basis.

none | auto | <flex-grow> <flex-shrink> <flex-basis>
gapFlexbox

Space between flex/grid items.

<length> | <percentage> (row-gap column-gap)
grid-template-columnsGrid

Defines columns of the grid.

none | <track-size> | repeat() | minmax() | auto-fill | auto-fit
grid-template-rowsGrid

Defines rows of the grid.

none | <track-size> | repeat() | minmax()
grid-columnGrid

Shorthand for grid-column-start and grid-column-end.

<line> / <line> | span <number>
grid-rowGrid

Shorthand for grid-row-start and grid-row-end.

<line> / <line> | span <number>
grid-areaGrid

Named grid area or row/column shorthand.

<name> | <row-start> / <col-start> / <row-end> / <col-end>
font-sizeTipografia

Size of the font.

<length> | <percentage> | xx-small...xx-large | smaller | larger
font-familyTipografia

Prioritized list of font family names.

<family-name> | <generic-family> (comma-separated list)
font-weightTipografia

Weight/boldness of the font.

normal | bold | bolder | lighter | 100–900
font-styleTipografia

Italic or oblique font.

normal | italic | oblique
line-heightTipografia

Height of a line box.

normal | <number> | <length> | <percentage>
text-alignTipografia

Horizontal alignment of text.

left | right | center | justify | start | end
text-decorationTipografia

Decorative lines on text.

none | underline | overline | line-through | blink
text-transformTipografia

Capitalization of text.

none | uppercase | lowercase | capitalize
letter-spacingTipografia

Space between characters.

normal | <length>
word-spacingTipografia

Space between words.

normal | <length>
colorVisivo

Foreground color of text and text decorations.

<color> (name, hex, rgb(), hsl(), oklch())
backgroundVisivo

Shorthand for all background properties.

<color> | <image> | <position> / <size> <repeat> <attachment>
background-colorVisivo

Background color of element.

<color> | transparent
opacityVisivo

Transparency of element (0–1).

<number> (0 = transparent, 1 = opaque)
visibilityVisivo

Shows or hides element without changing layout.

visible | hidden | collapse
transitionAnimazione

Shorthand for transition properties.

<property> <duration> <easing> <delay>
animationAnimazione

Shorthand for animation properties.

<name> <duration> <easing> <delay> <iteration> <direction> <fill-mode>
transformAnimazione

Applies 2D/3D transforms.

none | translate() rotate() scale() skew() matrix()
will-changeAnimazione

Hints browser about expected changes for optimization.

auto | scroll-position | contents | transform | opacity
cursorUI

Type of mouse cursor.

auto | default | pointer | text | move | grab | not-allowed | crosshair | ...
pointer-eventsUI

Controls when element can be target of pointer events.

auto | none | all | fill | stroke | painted
user-selectUI

Controls if text can be selected.

auto | none | text | all | contain
outlineUI

Outline drawn around element outside border.

<outline-width> || <outline-style> || <color> | none
resizeUI

Whether/how user can resize element.

none | both | horizontal | vertical

Informazioni su questo strumento

Questo riferimento copre le proprietà CSS più utilizzate in otto categorie: Layout, Modello a scatola, Flexbox, Grid, Tipografia, Visivo, Animazione e interazione UI.

Usa la casella di ricerca per filtrare per nome di proprietà, descrizione o valori accettati. Usa il filtro di categoria per sfogliare un gruppo specifico.

Come usare

  1. Digita un nome di proprietà o una parola chiave nella casella di ricerca per filtrare l'elenco.
  2. Seleziona una categoria dal menu a discesa per mostrare solo quel gruppo.
  3. Ogni riga mostra il nome della proprietà, tag di categoria, descrizione e valori accettati.

Casi d'uso

Gli sviluppatori front-end cercano nomi di proprietà e valori validi durante lo sviluppo. Gli studenti che imparano CSS usano il riferimento per esplorare le proprietà disponibili.

Domande frequenti

  • Sono incluse tutte le proprietà CSS?No. Questo riferimento copre solo le proprietà più utilizzate.
  • Sono elencate proprietà con prefissi vendor?No. Sono elencate solo proprietà standard senza prefisso.