I guess it must be illegal to keep the box the same size in all these examples. Otherwise i'm sure they would have.
That is totally not true. Next time at a store, look at the Kraft Mac n'n Cheese regular style box, parked right next to the "Kiddie" shapes. The boxes are exactly the same size, cost the same price, but the kiddie boxes have 1.75 oz less product in them.
