Ah, itās defined in my custom.js. Itās from the time when HA didnāt have rounded corners on cards. They since introduced it, but with a larger radius, so Iāve kept mine.
Yes, thatās what I want in my case: only the top left and right corners of the head row must be rounded.
Thanks. Indeed. The whitespace control of Jinja can catch one out. Your version is a bit more maintainable and explicit.
Since you provided no minimal code, I tested with this:
- type: markdown
content: |
<div class="tg-wrap">
<table width=100%>
<tbody>
<tr>
<td><ha-icon icon="mdi:bell"></ha-icon></td>
<td>long long long long long long long long long long long long long long long long long long long long</td>
<td>xxxxxxx</td>
</tr>
</tbody>
</table>
</div>
The āha-iconā & text elements need to be in different ātdā, otherwise with this
<td><ha-icon icon="mdi:bell"></ha-icon>long long long long long long long long long long long long long long long long long long long long</td>
you will see this:
With these examples I found a bit tricky to get stable results.
This was unstable:
Hi, I would like to change the title and sensor text color of this card, but already playing with it for hours and canāt find it, some css guru here that can help with this?
Hi, I tried searching online, using the chrome inspect option, but I can only find these values, no option to change the title, subtitle color, that said Iām no dev guy and all this template, CSS stuff is quite hard for me, but with the help of the community, trial and error Iām getting there
hi, Iām trying to change the font-weight of the value in a auto-entities card, but for some reason I canāt get it to work. What am I missing here? The
It seems the inconsistent behaviour of card-mod is corrected if I use it as a frontend module, and not a lovelace resource. So, since I installed it via HACS, I added this to my configuration.yaml:
OMG! Thank you so much! This is exactly what I was looking for. You even provided different variations to help me understand/learn CSS styling better. I always learn better with real-world examples like this that I can relate to.
I need a little help, I have this page for bus departures in an iframe card: VƤsttrafik AvgƄngstavla
I want to hide the rows with departures from platform (LƤge) B.
Hereās my card yaml so far:
Does anyone know if itās possible to use card-mod for thisā¦
When I specify color/transparency for my card background color via: card-background-color, it is also forcing its color/transparency onto unrelated ādrop-down menu backgroundā:
All Iām trying to do is turn off transparency for drop-down menu backgrounds without turning off transparency for card backgrounds. Iām surprised that they are even linked together in the first place.
I canāt even use Developer tools to select the drop-down menu background to see whatās going on. When I try to use the element selector in my web browserās Developer Tools, the drop-down menu loses focus.
I believe the popular ios-themes theme also has this issue since they have transparent card backgrounds.
I would appreciate any guidance that can help me achieve this. Iāve already spent a lot of time on this without any progress.
The one should not fore the other. You are only manipulating/setting the variable which is most probably used by both places. Just donāt manipulate the variable, which is used, but the background of the card directly instead. So where the variable is used before, set the values, you want to have.