# Alignment

> Lining things up on a shared edge. It makes a page look neat.

**Field:** Design  
**Category:** Foundations  
**Also known as:** Visual Alignment, Alignment Principle

## Think of it like

It is like kids lined up along a wall. Nobody sticks out, so the line looks neat.

## Definition

Alignment means lining things up along a shared edge or center. Text, images and buttons all sit on the same invisible lines. That gives a page order, even when it holds many parts. Left alignment is the easiest to read for long text. Things placed at random look careless, even if each one is fine.

## Example

Jack lines up the logo, the heading and the button on one left edge. The landing page looks calm at once.

## Example code

```css
.card {
  text-align: left;
  align-items: flex-start;
}
```

Two CSS lines that line text and boxes up on the same left edge.

## Why it matters

The eye follows edges. Parts that line up are read faster, and they look like they go together.

## Common mistake

Centering everything. Centered blocks of long text have a ragged edge on both sides.

## Three principles

- **Shared edges.** Every item sits on a line.
- **Left for long text.** The eye finds each new line.
- **Nothing at random.** Every place is a choice.

## Related terms

- [Principles of Design](https://learn.benibix.com/term/design/design-principles)
- [Grid System](https://learn.benibix.com/term/design/grid-system)
- [Repetition](https://learn.benibix.com/term/design/repetition)
- [Law of Continuity](https://learn.benibix.com/term/design/law-of-continuity)
- [Optical Alignment](https://learn.benibix.com/term/design/optical-alignment)

## Taught in

- [Principles of Design](https://learn.benibix.com/learn/design-foundations/principles-of-design): Design Principles, 3/11

![Four small panels: boxes lined up on one edge, the same dot shape repeated, one big dark square beside small light ones, and a seesaw holding even weights.](https://learn.benibix.com/diagrams/design-principles.svg)

---

Source: https://learn.benibix.com/term/design/alignment
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
