mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-11-04 00:03:15 -05: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 %}
 |