Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Images wont load from CSS
I am trying to load a backgroung image in my UI using the CSS and not the theme resource. Though I am specifying a folder path or a external URL still the image won't load. can anyone help me with this.
.v-verticallayout
{
background-image: url("http://upload.wikimedia.org/wikipedia/commons/7/71/Arrow_east.svg");
}
.v-caption
{
background-image: VAADIN/themes/customThemes/images/Arrow.png;
}
None of the above is working. Does it need any modifications?
Last updated on
Hi Mihir,
Try this for the the second option:
.v-caption
{
background-image: url('images/Arrow.png');
}
I try the first option and works fine, the only problem I suspect you have is that the image is larger than you expect, as you see below
http://upload.wikimedia.org/wikipedia/commons/7/71/Arrow_east.svg
HTH.
Javi
Last updated on May, 9th 2012
You cannot reply to this thread.