This figure shows what happens during a temperature inversion.  Source:understoryweather.com