🧭Alignment
Also known as Visual Alignment, Alignment Principle
Lining things up on a shared edge. It makes a page look neat.
Think of it like
It is like kids lined up along a wall. Nobody sticks out, so the line looks neat.
Example
Jack lines up the logo, the heading and the button on one left edge. The landing page looks calm at once.
Why it matters
The eye follows edges. Parts that line up are read faster, and they look like they go together.
Definition
Example code
css
.card {
text-align: left;
align-items: flex-start;
}Common mistake
Key takeaways
- 1Shared edges. Every item sits on a line.
- 2Left for long text. The eye finds each new line.
- 3Nothing at random. Every place is a choice.