Universal joint questions

I know that there are different size cups for U joints. Is there also different length U joints? I mean the distance across the U joint, I am trying to install a new U joint on an 8 3/4 and the cups are 1/4" from the edge of the yoke. This doesn't seem right. Maybe someone here can help me find the right U joint. Thanks