# Layout Customization

The Card component aligns its content based on the [CSS Flexbox Layout](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox).

The default flow of the inner containers is set by specifying the card [orientation](https://www.telerik.com/kendo-angular-ui-develop/components/layout/card/orientation). To built on top of that, you can override the `flex-flow` CSS property of each Card building block and achieve a versatile range of highly customized layouts. For example, you can vertically align the content of a horizontal card and vice versa. To ease you in the process, the Kendo UI themes expose the `k-vstack` and `k-hstack` predefined utility CSS classes which will automatically apply the required styles.

## Horizontal Containers

To specify a horizontal flex direction for an inner Card element, apply the `k-hstack` utility CSS class to it.

The following example demonstrates a vertically oriented Card with horizontally oriented inner containers.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/card/custom_layout/horizontal/source.txt)

## Vertical Containers

To specify a vertical flex direction for an inner Card element, apply the `k-vstack` utility CSS class to it.

The following example demonstrates a horizontally oriented card with vertically oriented inner containers.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/layout/card/custom_layout/vertical/source.txt)

## Suggested Links

* [API Reference of the Card](https://www.telerik.com/kendo-angular-ui-develop/components/layout/api/cardcomponent)
