Thanks for your help. It looks like simply deleting those height/length lines gives me the auto-adjusting button that I want.
Also, when I use border-radius 25%, it gives me one kind of oval, and when I use border-radius 50%, it gives me an oval with more tapered ends. I’m not sure what the border-radius refers to exactly, but I’m assuming I can pick numbers in between for different oval shapes?
Thanks, but it looks like that changes the color of the icon in the button. What I'm looking for is something that changes the entire button color excluding icon and text (when it's in the off position). For instance, the button normally turns yellow when it is on but it's a sort of light-gray when it's off. What I want to do is change some of the buttons when they are in the off position to a different color other than that light-gray.... is there a way to do that?
This was the post I provided to you in your customisation topic, which I believe you could use to adjust the background color. It's not the nicest way to have to set it up, but all that we can probably do. It will need some creative thinking to apply to your use case, so see how you go...
Based on your other posts, @sburke781 provided another solution using the JSON layout.
One thing to keep in mind, some of the icon have a transparent background, when you change the button background the icon's color will adapt to the new color.
ya i gave up on that approach as the problem with that one was you needed to specify a bgcolor for every temp value which is ok if you are using integer temps but as soon as you start to use decimal values it becomes unteneable.. i wish i knew how to specify a temp range for the state values.
i do something similiar for my version of smarttiles (precursor to actiontiles) that i am running but havent figured out how to do it in the built in dashboards.
That one was more to do with changing the background color of a switch tile, rather than the other recent link I provided to your Humidity solution. But still, good to know the outcome in case it comes up again.
Hello can anyone help me with the CSS code to change the height and width of a single tile. I'm trying to figure out CSS but having a hard time with the elements. thank you
Is this code for changing the size of a custom icon, or will it work to change the size of a default icon for an individual tile? The latter is what I want to do but a not sure I understand which element is changing the icon size… maybe font-size or is it both .material-icons adnd font-size?
i tried to use the simple editor but it seemed like it would only change those things on my local network. If i opened the dashboards on my phone its the same old dashboard. seems like the editor didn't edit the dashboard on my mobile phone. I must be doing something wrong.