I have a horizontal stack with 2 cards: Weather information and a vertical stack (with 2 cards)
I want the weather card to have 75% of the space and the vertical stack (with its 2 cards) should use the remaining 25%. I have read and testet something with “card-mod” but I’m not able the configure that.
Here is my code at the moment:
type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: 30% 1fr
grid-template-areas: |
"left right"
cards:
- type: markdown
content: I am Left
view_layout:
grid-area: left
- type: markdown
content: I am Right
view_layout:
grid-area: right
Thank you for your input. Looks like I’m not far away from a solution but the margin of this generated card(s) are not correct - I’ve tried to set margins to 0px, this makes it a bit better but as you can see on the picture its not the same as the other cards. also the first Card is to big with 70%…
I assume the card beneath is a grid with three columns, in that case its fair to assume each column is 33% wide, if you want your first “wide” column to cover the two in the grid then 66% rather than 70% would be better (I found actually 64% aligned better) - trial and error, adjust and see what you get…
type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: 67% 33%
margin: '-4px'
grid-template-areas: |
“left right”
...rest of the card config.....