aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Beye <[email protected]>2016-01-07 22:34:13 -0600
committerChris Rebert <[email protected]>2016-02-18 18:33:16 -0800
commite91c9e2898953208084e1eebdbdef978a7a1f206 (patch)
tree7702ddd1b660b6c3580c767fe56c6216d2107383
parentbf734252770879d7207d5dc7df7aa82109d8880b (diff)
downloadbootstrap-e91c9e2898953208084e1eebdbdef978a7a1f206.tar.xz
bootstrap-e91c9e2898953208084e1eebdbdef978a7a1f206.zip
Document .pos-f-t utility class; fixes #18494
Add documentation to components/utilities to publicly expose the .pos-f-t utility class to users. Closes #18799 [skip sauce]
-rw-r--r--docs/components/utilities.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/components/utilities.md b/docs/components/utilities.md
index 96c84b961..76bf5f9be 100644
--- a/docs/components/utilities.md
+++ b/docs/components/utilities.md
@@ -229,6 +229,20 @@ Easily clear `float`s by adding `.clearfix` **to the parent element**. Utilizes
}
{% endhighlight %}
+## Fixed positioning
+
+The `.pos-f-t` class can be used to easily position elements at the top of the viewport and make them as wide as the viewport. **Be sure you understand the ramifications of fixed-position elements within your project.** Here's how the class is defined:
+
+{% highlight scss %}
+.pos-f-t {
+ position: fixed;
+ top: 0;
+ right: 0;
+ left: 0;
+ z-index: $zindex-navbar-fixed;
+}
+{% endhighlight %}
+
## Invisible content
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.