Skip to content

Examples from forum ​

These examples are from the Home Assistant community post Styling the card by Ildar_Gabdullin. The images are stored locally in this documentation; the code is assigned to the respective example from the forum.

External examples

The examples are forum excerpts and may need to be adapted depending on the Home Assistant version, flex-table-card version or additionally used cards such as auto-entities and card_mod.

UIX versions

The third column contains a UIX variant of the code. Only the styling part is replaced: card_mod: becomes uix:, the native css: configuration of the flex-table-card remains unchanged.

1. Zero padding and colored table frame ​

Image
1. Zero padding und farbiger Tabellenrahmen
Code
UIX version

2. No internal frames ​

Image
2. Keine internen Rahmen
Code
UIX version

3. Own internal frames: headers and cells ​

Image
3. Eigene interne Rahmen: Header und Zellen
Code
UIX version

4. Own internal frames: table cells only ​

Image
4. Eigene interne Rahmen: nur Tabellenzellen
Code
UIX version

5. Own internal borders: top of line ​

Image
5. Eigene interne Rahmen: Zeilenoberkante
Code
UIX version

6. Own internal frames: column separators ​

Image
6. Eigene interne Rahmen: Spaltentrenner
Code
UIX version

7. Restore padding via card_mod ​

Image
7. Padding per card_mod wiederherstellen
Code
UIX version

8. Horizontal scroll bar ​

Image
8. Horizontaler Scrollbalken
Code
UIX version

9. Horizontal and vertical scroll bar ​

Image
9. Horizontaler und vertikaler Scrollbalken
Code
UIX version

10. Header: different styles ​

Image
10. Header: verschiedene Styles
Code
UIX version

11. Hide headers ​

Image
11. Header ausblenden
Code
UIX version

12. Partially hide header ​

Image
12. Header teilweise ausblenden
Code
UIX version

13. Visually summarize headers ​

Image
13. Header optisch zusammenfassen
Code
UIX version

14th lines: same background color ​

Image
14. Zeilen: gleiche Hintergrundfarbe
Code
UIX version

15. Rows: alternating and single styles ​

Image
15. Zeilen: abwechselnde und einzelne Styles
Code
UIX version

16. Rows: Hover styling ​

Image
16. Zeilen: Hover-Styling
Code
UIX version

17. Columns: different styles ​

Image
17. Spalten: verschiedene Styles
Code
UIX version

18. Adjust column width ​

Image
18. Spaltenbreite anpassen
Code
UIX version

19. Cells: style single row and cell ​

Image
19. Zellen: einzelne Zeile und Zelle stylen
Code
UIX version

20. Dynamic styling via entity state, variant 1 ​

Image
20. Dynamisches Styling per Entity-Zustand, Variante 1
Code
UIX version

21. Dynamic styling via entity state, variant 2 ​

Image
21. Dynamisches Styling per Entity-Zustand, Variante 2
Code
UIX version

22. Conditional cell contents with modify, div and span ​

Image
22. Bedingte Zellinhalte mit modify, div und span
Code
UIX version

23. Make text in table cells selectable ​

Image
23. Text in Tabellenzellen auswählbar machen
Code
UIX version