this is currently not supported and i dont know if that is easy to do for us
Because we then need to preparse the css that is send to the client and rewrite it so that the url is converted to something the browser understands.
you can make a case for this so that we can look into this if it is possible
background css images do work now in web and smart client
Repeat isnt working (smart has no support for that at all and you can try if it somehow does get picked up at the web)
but it is set at most places as no-repeat by servoy so that web and smart are in sync.
jcompagner:
background css images do work now in web and smart client
Repeat isnt working (smart has no support for that at all and you can try if it somehow does get picked up at the web)
but it is set at most places as no-repeat by servoy so that web and smart are in sync.
Hi
Can I confirm that applying the background image to a label should allow you to add text to the label and this render in front of the background image. This works faultlessly in the web client, but in the smart client the label text is obscured by the background image.
What I would like to be able to do is to use the background image as a button state and have the text change dynamically over the top depending on the user selection.
Thanks and a very happy and prosperous new year to everyone…
Does it mean that we have to import the image in solution before we can ship it?
How about branding then? The image should be different for each customer, so we should be able to replace the picture in the filesystem without re-building the solution.
I tried to use ```
background-image: url(path/logo.png);
If I use url(./logo.png) - what location is that supposed to be?
Cheers,
Maria
maria:
Does it mean that we have to import the image in solution before we can ship it?
seems the background image via css can’t be an uri then…
But: there are other possibilities:
a) don’t use a styleclass, but implement this via the textsetting of a label , this supports uri (that’s how we did it anyway, because it gives you far more control over ie. resize properties).
b) use a ‘general’ reference to the media library, ie. media:///branding.png and set the correct image in this media item during startup via the solutionModel.
I didn’t test this last one, but it should be able to work.
maria:
Does it mean that we have to import the image in solution before we can ship it?
seems the background image via css can’t be an uri then…
But: there are other possibilities:
a) don’t use a styleclass, but implement this via the textsetting of a label , this supports uri (that’s how we did it anyway, because it gives you far more control over ie. resize properties).
b) use a ‘general’ reference to the media library, ie. media:///branding.png and set the correct image in this media item during startup via the solutionModel.
I didn’t test this last one, but it should be able to work.
jcompagner:
background css images do work now in web and smart client
Repeat isnt working (smart has no support for that at all and you can try if it somehow does get picked up at the web)
but it is set at most places as no-repeat by servoy so that web and smart are in sync.
The image is working, but the text in the label is not displayed. It looks like the background image is on top of the text, instead of below the text.
This is not expected behaviour, I think. Could this be changed?
Karel Broer:
Code: Select all
label.normal
{
font-family: Tahoma, sans-serif;
font-size: 9pt;
text-align: center;
color: #555555;
background-image: media:///ui_top_bar.png;
}
The image is working, but the text in the label is not displayed. It looks like the background image is on top of the text, instead of below the text.
This is not expected behaviour, I think. Could this be changed?
But that’s logical behaviour: try to change the name of your background-image to ‘ui_behind_bar.png’ to get it behind your text…
Gordon:
Hi
Can I confirm that applying the background image to a label should allow you to add text to the label and this render in front of the background image. This works faultlessly in the web client, but in the smart client the label text is obscured by the background image.
What I would like to be able to do is to use the background image as a button state and have the text change dynamically over the top depending on the user selection.
Thanks and a very happy and prosperous new year to everyone…
Could anyone confirm the above? I still can’t get a label text to be displayed over the label image.