girish
Posts: 0
Joined: Sat Aug 30, 2014 12:15 pm

Set backgroud-image property for grid

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%;
}

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Set backgroud-image property for grid

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.

Return to “Issues”