I’m looking to combine two cards in my front end, one is a mark down card and the other is a custom mini graph card in horizontal stack. The code for both cards is below and I’m hopnig this is possible but can someone point me in the right direction please?
Not 100% sure what you’re after, but if you’re trying to make it look like two different card types are in the same card (no margins/borders/etc.) you can use this:
I use it in a few different places and it works great. Here’s an example where I wanted to combine a 3 column glance card and 4 column glance card into a seamless ‘look’:
yeah, several ways I guess,
not sure which custom card you are using (there’s quite a few in github) but if it is the one I linked to then you should be able to do,
type: 'custom:stack-in-card'
mode: vertical
title: Speed Test
cards:
- type: horizontal-stack
cards:
- type: <whatever sensor or graph>
..
..
- type: <whatever sensor or graph>
..
..
- type: horizontal-stack
cards:
- type: <your script or sensor>
..
..
- type: <your script or sensor>
..
..
note: I have changed your vertical to horizontal in the stack-in: block
So what this does it create one overall container card,
in which two cards are stacked vertically,
in which the first card is a horizontal set of cards for each of your sensors and graphs,
and the second vertical card (underneath the first) is a horizontal set of cards for your script and button
top-card and bottom-card are shown for illustration and concept - you don’t actually declare them explicitly because they are in fact the horizontal-stack cards.
there are other cards like @Markus99 linked to, and other ways - Im sure members will share their thoughts.