Types of eyelid infections
In addition to a clogged oil gland in the eyelid, eyelid infections can develop from bacteria, fungi or viruses.
Bacterial eyelid infection
Poor eye hygiene, using dated cosmetics or a case of pink eye that spreads can cause a bacterial infection in the eyelid. Bacteria can also be transferred to the eyelid in the event of an injury.
A condition called periorbital cellulitis, which is caused by bacteria that attacks the soft tissue around the eye, can also infect eyelids. Periorbital cellulitis usually develops due to a sinus infection that spreads to the eye, but it can sometimes develop after eye trauma.
SEE MORE: Orbital cellulitis
Fungal eyelid infection
A fungal infection can occur on the eyelid if your eyes are exposed to fungal spores in the environment. Eye injuries caused by organic material, such as a branch or thorn, can transmit fungi into the eyes and cause an infection that affects the eyelid.
Viral eyelid infection
A virus such as a cold, flu or COVID-19 can cause eyelid inflammation and lead to an infection. While some symptoms can be managed, there is no treatment to get rid of an eyelid infection caused by a virus; they must simply run their course — typically lasting seven to 10 days (depending on the severity).
Stye
A stye is an infection in the eyelid that causes a pimple-like, painful bump to develop on the corner or edge of the eyelid. They are usually caused by infected or clogged oil glands that run along the eyelashes.
You can treat a mild stye at home with a warm compress and by gently washing the area with an eye-safe cleanser. However, some styes can lead to a more severe eyelid infection.
Medical intervention may be needed for severe or persistent styes so that they heal properly and to prevent the infection from spreading.
Chalazion vs. stye
A chalazion is similar to a stye, as they are both small bumps caused by clogged oil glands in the eyelid. Unlike styes, chalazions are bumps located in the middle of the eyelid (rather than at the lid margin) and are painless.