Hi,
I am trying to centre my items in a horizontal stack card using card-mod, but seems like I am doing something wrong. I understand that the element is inside shadow dom, but unable to figure out the way to style it. Here is a screen shot of the element dom
and here is my styling code:
cards:
- type: "custom:mod-card"
card_mod:
style: |
ha-card {
border-style: solid;
border-color: red;
border-width: 2px;
background-color: white;
//margin-left: 55px;
width: 100%;
align-self: middle;
justify-self: middle;
-webkit-justify-content: center;
}
card:
type: horizontal-stack
card_mod:
style: |
$hui-horizontal-stack-card:
$: |
#root {
justify-content: center;
}
Kindly help.