background images in CSS

Is it possible to define background images in labels inside the CSS?

In CSS you can do that, the question is if it can be used in the SUN HTML renderer.
And…it seems to work fine. :)

The syntax for background images in CSS is:

.bgimage { background-image: url(media:///nameOfImage.gif); }

Here some info on the background properties you can use in CSS:
http://www.w3schools.com/css/css_background.asp

Hope this helps.

I have this:

label.test
{
background-image: url(media:///header-bg.png); 
}

but it's not working!

Ow! :oops:

You meant in Servoy CSS.
Well first of all when you set the imageMedia of a label it will never be used as background image. It pushes the text to the right.
I checked the Servoy help (Contents > Appendix > Servoy CSS style properties) and it doesn’t mention any way to set the imageMedia.