Bootstrap Image Replacement

The .text-hide class or mixin is used to replace an element's text content with a background image.

Syntax: -

Image Replacement in Bootstrap using text-hide Class

Bootstrap allows us to replace the text with background image for any text element like paragraph element, heading element etc. With the use of .text-hide class, we can replace an element’s content with a background image.

Example -