</div>
```
-***
+---
## Making Closable
<p>The close button on its own doesn't close elements, but you can use it with <a href="toggler.html">Toggler</a>, <a href="reveal.html">Reveal</a>, <a href="off-canvas.html">Off-canvas</a>, and other plugins that have open and close behaviors.</p>
</div>
-For example, pair the callout with the close button component and `data-closable` attribute to create a dismissible alert box.
-
<div class="primary callout">
<p>Any element can be used as a close trigger, not just close button. Adding the attribute <code>data-close</code> to any element within the callout will turn it into a close trigger.</p>
</div>
+The below example pairs the callout with the close button component and `data-closable` attribute to create a dismissible alert box.
+
```html_example
<div class="callout" data-closable>
<p>You can so totally close this!</p>
<span aria-hidden="true">×</span>
</button>
</div>
-
```
---
title: The Grid
description: Create powerful multi-device layouts quickly and easily with the default 12-column, nestable Foundation grid. If you're familiar with grid systems, you'll feel right at home. If not, you'll learn quickly.
-sass:
+sass:
- scss/grid/*.scss
- '!scss/grid/_flex-grid.scss'
tags:
---
-### Responsive Gutters
+### Gutters
<div class="warning callout">
- <p>Responsive gutters were added in <strong>Foundation 6.1.0</strong>. As of this version, it's still possible to use static gutters, or you can upgrade your project to responsive gutters. In Foundation 6.2.0-rc.1, static gutters will be removed entirely in favor of responsive gutters. Refer to the <a href="https://github.com/zurb/foundation-sites/releases/tag/v6.1.0">Version 6.1.0 changelog</a> for more details on the upgrade process.</p>
+ <p>Responsive gutters were added in Foundation 6.1.</p>
</div>
The grid *gutter*—the space between two columns in a row, and the space between the edge of a grid and the edge of the page—is responsive, and becomes wider on larger screens.
`small` | 20px
`medium` | 30px
-If you're using the Sass version of Foundation, you can change these defaults by editing the `$grid-column-responsive-gutter` variable:
+If you're using the Sass version of Foundation, you can change these defaults by editing the `$grid-column-gutter` variable:
```scss
-$grid-column-responsive-gutter: (
+$grid-column-gutter: (
small: 20px,
medium: 30px,
);
To add more gutter definitions, add new lines to the map. The breakpoint names used here must match a breakpoint name in your project's `$breakpoints` map.
+Or, if you prefer using one gutter size on every breakpoint, just use a single number.
+
+```scss
+$grid-column-gutter: 30px;
+```
+
---
### Collapse/Uncollapse Rows
By default, all grids use the number of columns set by the `$grid-column-count` variable. However, this can be selectively overridden within an instance of a row.
-In this example, the grid is 16 columns instead of the normal 12. Any references to column math inside the mixin will use the new column count.
+In this example, the grid is 16 columns instead of the normal 12. Any references to column math inside the mixin will use the new column count.
```scss
.container {