Following @DavidThomas comment I have asked a separate question related to this one rather than edit this one to avoid confusion. This question follows from that one. Do CSS rules exist for placing content within elements and positioning them?
I want to express CSS classes with images, so that if a div
has the classes classA, classB, classC etc the images called classA.jpg, classB.jpg, classC.jpg etc are placed in the div
, but they should be placed in the div in such a way that they don't overlap or overwrite each other.
The images will all be smaller than the div, or resizable to a fraction of the size of the div.
In short the question I am asking how do you get a class to place a graphic at a position which is fraction of the width of the div, and resize it to a certain percentage of hte div's size.
For some more background I asked the question on reddit How can I express multiple CSS classes in the same div?, but I think I have expressed it better succintly here.