How do major political parties split control of Congress?

How do major political parties split control of Congress?