Adding parent div over multiple divs
I want to add a parent div.
These are four divs and i want to add a parent div above them. I tried this
But this is adding cubeSpinner above faceone only
But i want the result should be like this
You need to select all the elements in order for them to be wrapped. I’d suggest adding a common class to them, but in the meantime you could use the attribute selector
[id^="face"] to select all elements with an
id attribute that begins with ‘face’: