# Vertical Align Change the alignment of elements with the vertical-align utilities. Only affects inline, inline-block, inline-table, and table cell elements. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-vertical-align--introduction ## Variants documented in Storybook - VerticalAlignShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-vertical-align--verticalalignshowcase ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Vertical Align. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Introduction — Introduction HTML: ```html
A complete reference of all vertical alignment utility classes.
Every class from the utility library, categorized for easy access.
Format: ux4g-va-{alignment}
|
Baseline
ux4g-va-baseline
|
|
Top
ux4g-va-top
|
|
Middle
ux4g-va-middle
|
|
Bottom
ux4g-va-bottom
|
|
Text Top
ux4g-va-text-top
|
|
Text Bottom
ux4g-va-text-bottom
|
A complete reference of all vertical alignment utility classes.
Every class from the utility library, categorized for easy access.
Format:
ux4g-va-{alignment}
|
Baseline
ux4g-va-baseline
|
|
Top
ux4g-va-top
|
|
Middle
ux4g-va-middle
|
|
Bottom
ux4g-va-bottom
|
|
Text Top
ux4g-va-text-top
|
|
Text Bottom
ux4g-va-text-bottom
|
A complete reference of all vertical alignment utility classes.
Every class from the utility library, categorized for easy access.
Format: ux4g-va-{alignment}
|
Baseline
ux4g-va-baseline
|
|
Top
ux4g-va-top
|
|
Middle
ux4g-va-middle
|
|
Bottom
ux4g-va-bottom
|
|
Text Top
ux4g-va-text-top
|
|
Text Bottom
ux4g-va-text-bottom
|