Source

Imej riplesmɛnt

Swap tɛks fɔ bakgrɔn pikchɔ dɛn wit di pikchɔ riplesmɛnt klas.

Wɔnin

Di text-hide()klas ɛn mixin dɔn deprecated as of v4.1. I go kɔmɔt ɔlsay na v5.

Yuz di .text-hideklas ɔ mixin fɔ ɛp fɔ riples wan ɛlimɛnt in tɛks kɔntinyu wit bakgrɔn pikchɔ.

<h1 class="text-hide">Custom heading</h1>
// Usage as a mixin
.heading {
  @include text-hide;
}

Yuz di .text-hideklas fɔ mentɛn di aksesibiliti ɛn SEO bɛnifit dɛn fɔ edlayn tag dɛn, bɔt want fɔ yuz wan background-imageinstead ɔf tɛks.

Bootstrap fɔ yuz

<h1 class="text-hide" style="background-image: url('/docs/4.1/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>