VibeDict

Alignment (Center)

Alignment (Center)

Deciding whether text or boxes line up on the left, center, or right.

💡 It's like hanging a picture frame right in the middle of a wall.

👆 Try it yourself

It really works — click around and see.

Horizontal

Vertical

Title
CSSdisplay: flex; justify-content: center; align-items: center;

🤖 Say this to your AI

Center the headline, description, and button in the hero both horizontally and vertically. Vertically center icons with their text so they line up.

The key word is ‘Alignment (Center)’. Including it helps AI understand you much more precisely.

📌 Good to know

Horizontal and vertical alignment are separate. Be sure to say 'center both horizontally and vertically'.

When to use it

  • When you want the headline and button right in the middle of the screen
  • When you want an icon and text to line up at the same height

Also called: center, middle, align, centered, left align, right align, line up

Related terms