# Align Self

Set individual item alignment along a container's cross axis.

**Widely available.** This feature is well established and works across many devices and browser versions.

Chrome 29 · Edge 12 · Firefox 20 · Safari 9

| Class | Properties | Value |
|-------|------------|-------|
| `as:auto` | align-self | `auto` |
| `as:b` | align-self | `baseline` |
| `as:c` | align-self | `center` |
| `as:fe` | align-self | `flex-end` |
| `as:fs` | align-self | `flex-start` |
| `as:s` | align-self | `stretch` |

## Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in `@md:h:as:fe`.

### Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

| Class | Applies |
|-------|---------|
| `@xs:as:fe` | From 32rem up. |
| `@sm:as:fe` | From 40rem up. |
| `@md:as:fe` | From 48rem up. |
| `@lg:as:fe` | From 64rem up. |
| `@xl:as:fe` | From 80rem up. |
| `@xxl:as:fe` | From 96rem up. |

### Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with `ct:is` first.

| Class | Applies |
|-------|---------|
| `@c:xs:as:fe` | Container from 32rem up. |
| `@c:sm:as:fe` | Container from 40rem up. |
| `@c:md:as:fe` | Container from 48rem up. |
| `@c:lg:as:fe` | Container from 64rem up. |
| `@c:xl:as:fe` | Container from 80rem up. |
| `@c:xxl:as:fe` | Container from 96rem up. |

### Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

| Class | Applies |
|-------|---------|
| `@pc:as:fe` | On a touch screen. |
| `@prm:as:fe` | With reduced motion on. |
| `@st:as:fe` | On the first frame. |

### States

Apply a class only while the element is in a state, such as hovered, focused or checked.

| Class | Applies |
|-------|---------|
| `h:as:fe` | On :hover. |
| `f:as:fe` | On :focus. |
| `fv:as:fe` | On :focus-visible. |
| `a:as:fe` | On :active. |
| `d:as:fe` | On :disabled. |
| `fc:as:fe` | On :first-child. |
| `c:as:fe` | On :checked. |
| `e:as:fe` | On :empty. |
| `fw:as:fe` | On :focus-within. |
| `i:as:fe` | On :invalid. |
| `in:as:fe` | On :indeterminate. |
| `lc:as:fe` | On :last-child. |
| `nc:as:fe` | On :nth-child. |
| `r:as:fe` | On :required. |
| `ro:as:fe` | On :read-only. |
| `v:as:fe` | On :valid. |

### Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

| Class | Applies |
|-------|---------|
| `a::as:fe` | On ::after. |
| `b::as:fe` | On ::before. |
| `p::as:fe` | On ::placeholder. |
| `s::as:fe` | On ::selection. |