mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
24 lines
458 B
Markdown
24 lines
458 B
Markdown
---
|
|
layout: docs
|
|
title: Invisible content
|
|
group: utilities
|
|
---
|
|
|
|
The `.invisible` class can be used to toggle only the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document.
|
|
|
|
{% highlight html %}
|
|
<div class="invisible">...</div>
|
|
{% endhighlight %}
|
|
|
|
{% highlight scss %}
|
|
// Class
|
|
.invisible {
|
|
visibility: hidden;
|
|
}
|
|
|
|
// Usage as a mixin
|
|
.element {
|
|
@include invisible;
|
|
}
|
|
{% endhighlight %}
|