How did the location of axis powers in Europe contribute to their defeat?

Germany and Italy don't border each other. In addition the countries on their borders opposed them.