Page 1 of 1

Set backgroud-image property for grid

Posted: Sat Nov 22, 2014 4:31 am
by girish

I would like to have an image and a label on top as a caption to the image. So i am planning to use Grid and set this image as the background for the grid and add the label on top. This is the CSS i created and assigned as classname to grid, but it doesnt work. Please help.

.my-grid {
background-image: URL('images/flipper62.png');
background-size: 100% 100%;
}


Set backgroud-image property for grid

Posted: Sat Nov 22, 2014 6:19 am
by Alena Prykhodko

Hi Girish,

You should write full path
pre
.my-grid {

background-image: url("../../../../files/views/assets/image/image_name.jpg");

}/pre

To cover grid component use appropriate CSS rule.