I need to use a lot of images (> 600) in the current project (application). The way I want to manage them, since I have almost no PHP / SQL experience, is in css / less.css.
I created a stylesheet called "faces.less" to manage them. My current sheet is as follows:
.f01 { background-image: url("{base-url}/f01.png"); }
Width, height, etc. managed in another class. But for this, 600+ times seems silly, is there a (simple) way in LESS or jQuery to load the image name from the class name? My ideal solution would look something like this:
.f01, .f02, .f03 { background-image: url("@{base-url}/{class-name}+png");
Any solution is welcome!
source share