Commit ca14b965 authored by Mark Otto's avatar Mark Otto
Browse files

inform the people that fixed positioning ain't all it's cracked up to be /cc #11888

parent 4ee93c9f
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
...@@ -82,6 +82,10 @@ ...@@ -82,6 +82,10 @@
<h3>Regarding navbars</h3> <h3>Regarding navbars</h3>
<p>As a heads up, the navbar component is rather tricky here in that the styles for displaying it are rather specific and detailed. Overrides to ensure desktop styles display are not as performant or sleek as one would like. Just be aware there may be potential gotchas as you build on top of this example when using the navbar.</p> <p>As a heads up, the navbar component is rather tricky here in that the styles for displaying it are rather specific and detailed. Overrides to ensure desktop styles display are not as performant or sleek as one would like. Just be aware there may be potential gotchas as you build on top of this example when using the navbar.</p>
<h3>Browsers, scrolling, and fixed elements</h3>
<p>Non-responsive layouts highlight a key drawback to fixed elements. <strong class="text-danger">Any fixed component, such as a fixed navbar, will not be scrollable when the viewport becomes narrower than the page content.</strong> In other words, given the non-responsive container width of 970px and a viewport of 800px, you'll potentially hide 170px of content.</p>
<p>There is no way around this as it's default browser behavior. The only solution is a responsive layout or using a non-fixed element.</p>
<h3>Non-responsive grid system</h3> <h3>Non-responsive grid system</h3>
<div class="row"> <div class="row">
<div class="col-xs-4">One third</div> <div class="col-xs-4">One third</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment