Source

Ranplasman imaj

Boukante tèks pou imaj background ak klas ranplasman imaj la.

Sèvi ak .text-hideklas la oswa melanje pou ede ranplase kontni tèks yon eleman ak yon imaj background.

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

Sèvi ak .text-hideklas la pou kenbe aksè ak avantaj SEO nan tit tags, men ou vle itilize yon background-imagetèks olye de tèks.

Bootstrap

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