Skip to content

Commit

Permalink
Add note to docs about hiding the overflow on body.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsmason committed Jul 24, 2017
1 parent 916d94d commit 6f1489e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/pages/xy-grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6f1489e

Please sign in to comment.