Skip to content

Vertical Align

Vertical align utilities set vertical-align on inline, inline-block and table-cell elements: align-baseline, align-top, align-middle, align-bottom, align-text-top and align-text-bottom. Use them for icons beside text and for table cells; for block layouts use flex alignment instead.

1Inline alignment values

align-baseline, -top, -middle, -bottom, -text-top and -text-bottom on inline elements next to large text.

Ag baseline top middle bottom text-top text-bottom

2Table cell alignment

align-top, align-middle and align-bottom on cells of a tall table row.

align-topalign-middlealign-bottom

3Middle align a whole table

align-middle on the table aligns every cell, useful with avatars and buttons.

Tariq Varga
Ava Novak

4Icon next to text

align-middle lines an icon up with the middle of the text.

Our sommelier has paired each dish with wines from small family vineyards.

5Inline image in a sentence

align-text-bottom keeps a small avatar on the text line.

Written by Arjun Moreau on Nov 28, 2025.

6Badge beside a heading

A badge with align-middle beside a heading.

A beginner's guide to getting started New

7Superscript price

align-top on the currency sign and align-baseline on the cents.

$77.61 / mo

8Checkbox label alignment

Inline checkboxes and labels with align-middle in a sentence.

9Inline-block boxes

d-inline-block boxes of different heights aligned top, middle and bottom.

top middle bottom middle 50px

10Price table with bottom aligned totals

align-bottom keeps totals on the last line of tall cells.

ItemTotal
House lemonade
Mains
Qty 1
$85.71

11Status dots in text

Small dots with align-middle next to status words.

  • API operational
  • Dashboard degraded
  • Webhooks down

12Keyboard shortcut

kbd keys with align-text-top in a help line.

Press Ctrl + K to search Muse.

13Mixed sizes on a line

align-baseline keeps different font sizes sitting on one line.

889 orders +37 today

14Thumbnail with caption beside

Inline image and text aligned to the top with align-top.

Burrata with tomatoesBurrata with tomatoes
Every dish is cooked to order, so tell us if you would like anything changed.

15Buttons and text in one line

align-middle on a small button inside a paragraph.

7 items selected

16Footnote marker

align-text-top raises a small reference number.

We listen first, then build a plan around what you actually need.[1]

17Rating with value

Stars and score aligned middle in one line.

4.8 (574 reviews)

18Table header bottom aligned

align-bottom on header cells with wrapped titles.

NameMonthly
active
users
Plan
Muse70.1kTeam

19Flag and country

A small logo image with align-middle beside a country name.

South Korea

20Toggle row

A switch and its label aligned with align-middle in an inline row.

Beta