Hello,
Just redesigning my Lovelace views and encountered a little problem.
Is there a way to center the view buttons in the header ?
Kinda simple thing but I really don’t know how to do
Hello,
Just redesigning my Lovelace views and encountered a little problem.
Is there a way to center the view buttons in the header ?
Kinda simple thing but I really don’t know how to do
Something wrong with my question?
I still don’t know the answer
You can’t unless you use a custom card.
Already tried with custom-header but you can only invert (Left to Right, Up to bottom etc.) the view buttons with this.
Or am I missing a function ?
Ohhh ok. I tried something like that:
custom_header:
tab_container_css: 'padding-left: 50%;'
But its not exactly the middle of the header. Do you know another setting which is more accurate ?
try align-self: center;
Nop nothing happens with this one.
try display: inline-block; text-align:center;
or just
text-align:center;
Nop sadly not.
But I know the problem, I think tab_container_css is wrong
I changed a thing with Inspect function ^^
doesn’t look like he exposed it. Maybe ask him yourself in the custom_header thread