I am building cube shelves out of 1X12 across the back wall of my garage for storage. 12 inches deep obviously and about 18 inches tall.
I will be anchoring using 1X2 glued and screwed to the top board and underneath the bottom board to attach it to the wall. The shelving will span 6 studs...