shubham1
(shubham modi)
October 17, 2011, 8:57am
1
Hello friends,
I am using firebug for implementing css on my vaadin application.
In this application i am using a tabsheet .
the firebug shows the following css on the tabsheet .
.v-tabsheet-tabitemcell-selected-first{
background-image: url(common/img/vertical-sprites.png);
background-repeat: no-repeat;
background-position: left -1485px;
}
when i try to change the url as in
background-image: url(…/images/bg_tab_menu_left.jpg);
it is failed to load the image.
my image was in the following folder–
WebContent/VAADIN/themes/mytheme/images/
how can i load my image?
please somebody help me!!!
Max11
(Max Hellstrand)
October 17, 2011, 9:36am
2
Do you remove the positioning of the image? The framework image is a sprite, meaning that it has to use positioning to present the right content. When looking at your image file name I assume it’s not a sprite, and probably smaller than 1485 pixels…?
Try removing the
background-position: left -1485px;
and the image should load! =)
shubham1
(shubham modi)
October 17, 2011, 9:47am
3
removing the
is also not working:(
do you have any other idea?
Max11
(Max Hellstrand)
October 17, 2011, 10:23am
4
are you sure the path is url(…/images/bg_tab_menu_left.jpg)
and not url(…/img/bg_tab_menu_left.jpg)…?
Henri1
(Henri Kerola)
October 17, 2011, 1:33pm
5
I think the correct path would be:
url(images/bg_tab_menu_left.jpg)