Skip to content

Vertical Align

Set vertical alignment

Syntax

visual="align:[value]"

Values

ValueCSS OutputDescription
baselinevertical-align: baselineBaseline
topvertical-align: topTop
middlevertical-align: middleMiddle
bottomvertical-align: bottomBottom
text-topvertical-align: text-topText top
text-bottomvertical-align: text-bottomText bottom
subvertical-align: subSubscript
supervertical-align: superSuperscript

Examples

html
<img visual="align:middle">Vertically centered</img>

Preview

Vertical Align

visual="align:middle" - Align inline elements

topmiddlebottomBig
View Code
html
<div space="p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <span space="p:small" visual="bg:primary text:white rounded:small align:top">top</span>
  <span space="p:small" visual="bg:success text:white rounded:small align:middle">middle</span>
  <span space="p:small" visual="bg:warning text:black rounded:small align:bottom">bottom</span>
  <span visual="text-size:huge text:neutral-500">Big</span>
</div>