Older ribbons were 40 pin, but to get the higher speeds, they started using 80 pin ribbons. The 80 pin ribbons should work for all IDE. Also, even though they are 80 pin ribbons, I believe there were still 40 pins on the connectors themselves. Basically it was 2 wires per pin. This helped eliminate crosstalk and emi/rfi in order to obtain the faster speeds.
You can see a comparison of the 2 cables in the bottom picture.