Enable Background-Image css tag for containers - Mendix Forum

Enable Background-Image css tag for containers

0

It seems that the CSS tag ‘background-image’ does not work for containers when used in the style section of properties. Could this function be added please?

asked
3 answers

It should work

try adding this to style attribute:

background-image: url(https://sprintr.home.mendix.com/document/image?uuid=e25990d6-6594-4155-a1d5-879957e76478&target=internal&thumb=false&v=3);
background-size: cover; 
background-repeat: inherit; 

also you should be aware that styling your app through the style property is considered a bad practise, and instead you should do it though the Sass in the theme folder. :D 

Created

Sorry, I should have been clearer. 

The background-image css tag doesn’t seem to work when used in the style section in properties of a container widget. 

Created

Hi warren,

What do you mean it doesnt work?

Its just inline css.

background image often also needs some other css to make it work well.

height, repeat, position.

Created