These days ships are build with only one limitation. The Panama canal. It is 30 meters wide and the locks are 300 meter long. Ships fit in with only a few centimeters to spare. Six large locomotives pull and push the ship through the locks.