Unless the electron is the correct size, it shouldn't be able to get in resonance with a wave larger than itself, correct? If I hit a pendulum at a uniform rate which is lower than its resonant frequency, it cannot be in resonance.
OK, I understand your point. The answer is, as mfb said, that the wave-mechanical model of the atom is quite different from the model of, say, simple center-fed half-wave dipole antenna.
Resonance in such antenna occurs when the length of the antenna satisfies
$$
d = m\frac{\lambda}{2},~~, m= 1,2,3,... (*)
$$
so indeed such antenna has to be as long as the wave it is to be in resonance with.
The atom, however, is modeled differently. It has resonance frequencies too, but these are not given by such formula. That formula is not something fundamental - there are even macroscopic antennae that do not obey it either.
For example, you can receive long wave transmission with pocket radio. Antenna in such device has additional network attached to it, which influences the resulting resonance frequency of the antenna. Changing parameters of the network allows you to change this resonance frequency, so you can be in resonance with any transmission you want, within some range of course.
For the atom, things are more complicated and the standard understanding of its resonances is based onm Schroedinger's equations rather than on the antenna theory (which is based in the macroscopic electromagnetic theory anyway).
Physically, the differences are these: in the simple antenna, the resonance frequency is determined mainly by the simple boundary conditions for the current in a straight wire, since in metal there are no effective forces on the charge.
In the atom, however, besides boundary conditions (which are very different by the way) there are long-range binding forces due to nucleus as well as repulsing forces between the electrons. These co-determine the resulting resonance frequencies of the atom, and it turns out that resonance light has two orders longer wavelength than the size of the atoms.
The resonance frequencies of the atom can be determined by the time dependent Schroedinger's equation, which leads to formula for the resonance wavelength of the atom
$$
\lambda = \frac{hc}{E_n -E_m},~~~n, \neq m = 1,2,3,...
$$
where ##E_n,E_m## are solutions of the time-independent Schroedinger equation
$$
\hat H \Phi_n = E_n\Phi_n.
$$
To summarize, the atom is a microscopic object, modeled differently than simple antenna and that allows us to explain its different behaviour.