Layout Formatting
Aligning cards¶
If you want to alight cards to the center, right. Or only 1 card on the right it can be done using a blank-card
.
Center
# Card in the Center
- type: horizontal-stack
cards:
- type: "custom:button-card"
color_type: blank-card
- type: custom:button-card
template: chip_icon_label
label: Your Card Here
- type: "custom:button-card"
color_type: blank-card
Right
# Card on the Right
- type: horizontal-stack
cards:
- type: "custom:button-card"
color_type: blank-card
- type: custom:button-card
template: chip_icon_label
label: Your Card Here
Left & Right
# Card on the Right and Left
- type: horizontal-stack
cards:
- type: custom:button-card
template: chip_icon_label
label: Your left card here
- type: "custom:button-card"
color_type: blank-card
- type: custom:button-card
template: chip_icon_label
label: Your right card here