Aligning icon using card mod

How can I align the icon in a ha assistant card using card mod. I want to put the icon in the middle of the card

If it is an entities card, you can use:

    card_mod:
      style:
        hui-generic-entity-row:
          $: |
            state-badge {
              left: 45%;
            }

tag card_mod being aligned with entity tag

1 Like