When your eyelid gets infected, it can cause a red, painful, and swollen bump! It is important to treat this quickly, so the infection doesn’t spread to the back of your eye. Chalazia and hordeola (styes) are sudden-onset localized swellings of the eyelid. Treatment is primarily with hot compresses and oral steroids. Both conditions improve spontaneously, but incision or, for chalazia, intralesional corticosteroids may be used to hasten resolution.