mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-18 05:30:22 +00:00
19 lines
350 B
Markdown
19 lines
350 B
Markdown
|
|
---
|
||
|
|
layout: docs
|
||
|
|
title: Image replacement
|
||
|
|
group: utilities
|
||
|
|
---
|
||
|
|
|
||
|
|
Utilize the `.text-hide` class or mixin to help replace an element's text content with a background image.
|
||
|
|
|
||
|
|
{% highlight html %}
|
||
|
|
<h1 class="text-hide">Custom heading</h1>
|
||
|
|
{% endhighlight %}
|
||
|
|
|
||
|
|
{% highlight scss %}
|
||
|
|
// Usage as a mixin
|
||
|
|
.heading {
|
||
|
|
@include text-hide;
|
||
|
|
}
|
||
|
|
{% endhighlight %}
|