Node-red-contrib-ui-media

Is it possible to adjust and to center a picture at the same time?

Did you look at the options of the node?

Do you mean with "options" the layout in the configuration tab in the properties of the node?

yes, did you try setting the adjust to 'center'? or do you mean ou want to use 'Adjust' and then center the image also?

If that isthe case, you cold try adding a ui-template node and set the 'Template type' to 'Added to site section' and use something like this:

<style>
    #Home_media_cards img {
        margin: 50%;
        margin-left: auto;
        margin-right: auto;
    }
</style>
where 'Home' is the `tab` name and `media` is the `group` name where the media is in.

Yes, that is what I mean: adjust the image and then center it.
I understand there are other ways to get that result by adding a template. However for me the reason to use this node is that you don't need an additional template. It would be nice if there was an option to get the same result.

Why don't you raise an issue to the author on it's github page?

I have done that.
Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.