Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Styling the actual image of a type:image in a picture-elements card

$
0
0

@scottsweb wrote:

I am putting together a rather complicated UI using the picture-elements card in Lovelace. Within the picture-elments card I have a number of image elements, for example:

- type: image
  camera_image: camera.backdoor
  style:
    left: 55.18%

The styles appear to be applying to the container of the image, so adding something like border-radius: 50% doesn’t actually apply to the image itself, it applies to the container. This is an example with a border and border-radius and background-color:

Screenshot 2020-03-07 at 20.22.34

You can see the actual image maintains its original look and feel.

Does anyone have an example of targeting the image itself with styles? I would like to apply some specific formatting to the image, not just the container.

Many thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>