]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add note to docs about hiding the overflow on body. 10448/head
authorBrett Mason <brettsmason@gmail.com>
Mon, 24 Jul 2017 18:08:03 +0000 (19:08 +0100)
committerBrett Mason <brettsmason@gmail.com>
Mon, 24 Jul 2017 18:08:03 +0000 (19:08 +0100)
docs/pages/xy-grid.md

index 399bbb4f53e981702cf02a964057bc8034880a24..f1cf9ccb1301700fc8f464d5e4f2f3b8e52e2e42 100644 (file)
@@ -283,6 +283,10 @@ You can also apply margin or padding with `.grid-margin-y` and `.grid-padding-y`
 The XY grid incorporates the grid frame from Foundation for Apps plus many other useful features.
 To start, add `.grid-frame` to the grid. This sets the grid to be 100vh (the full height of the browser window).
 
+<div class="callout warning">
+  Please note to use `.grid-margin-x` or `.grid-margin-y` with `.grid-frame` you need to hide the overflow on the body like so: `body {overflow: hidden;}`.
+</div>
+
 Here's an example of what you can do:
 <div class="docs-codepen-container">
 <a class="codepen-logo-link" href="https://codepen.io/ZURBFoundation/pen/MogrXG?editors=1000" target="_blank"><img src="{{root}}assets/img/logos/edit-in-browser.svg" class="" height="" width="" alt="edit on codepen button"></a>