I don't think either requires a very deep container, though; I grow both lettuce and chard in flowerbox planters that sit on a deck railing (or, in my case, on top of the fence around my garden )
βThink occasionally of the suffering of which you spare yourself the sight." ~ Albert Schweitzer C/F temp conversion