Instead of repeating this CSS in my .less file. Would anyone know how to create a LESS function for the following?
li #prize-1 span {
background: url('@{imagesUrl}/1.png') no-repeat;
width: 874px;
height: 188px;
}
li #prize-2 span {
background: url('@{imagesUrl}/2.png') no-repeat;
width: 874px;
height: 188px;
}
Would it not be something like this
I am not that familiar with LESS so I think this works
Edit:
I am following this example from their homepage
also which part did not work? the background image? maybe try to take in the entire image path with the name as the variable