If you are gonna use shaders. Why not create the whole boxes as meshes? Why bother with the CSS at all?