css · v1.0 · 2026-07-20 · sha256 eeacc99f85c4a56c

css v1.0A

Immutable. This exact content never changes and is served at /api/v1/blob/eeacc99f85c4a56c.

---
name: css
description: Styling language.
license: MIT
metadata:
  author: vant
  version: "1.0"
---

# CSS

> Styling language.

---

## When To Use

- Styling web pages
- Layouts
- Animations

---

## What To Do

### 1. Syntax

```css
selector {
  property: value;
  property: value;
}

/* Comment */
```

### 2. Properties

| Property | What |
|---------|------|
| color | Text color |
| background | Background |
| margin/padding | Spacing |
| display | Layout |
| position | Placement |

### 3. Selectors

```css
.element       /* element */
.class         /* class */
#id            /* id */
parent child   /* descendant */
parent > child /* child */
```

### 4. Flexbox/Grid

```css
.container {
  display: flex;
  justify-content: center;
  align-items: center;
}
```

---

**Role**: CSS Developer  
**Input**: Styles  
**Output**: Visuals

> Style.