From: Geoff Kimball Date: Thu, 17 Mar 2016 16:34:30 +0000 (-0700) Subject: Adjust formatting of complete off-canvas example in docs X-Git-Tag: v6.2.1~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f910bbec127008c87f0adb8ecb30efa71c55d99c;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Adjust formatting of complete off-canvas example in docs --- diff --git a/docs/pages/off-canvas.md b/docs/pages/off-canvas.md index 9eac14f5c..f15dab35f 100644 --- a/docs/pages/off-canvas.md +++ b/docs/pages/off-canvas.md @@ -41,50 +41,39 @@ Along with the menu, the main content of your page will be housed in its own con ``` -### Working Example for Foundation 6.x +Here's a complete example that can be pasted into the `` tag of your page. It includes a close button and basic menu styles. + ```html
- - - - - - +
+
- - - +
``` -```javascript - -``` - ### Click Triggers To create a click trigger that opens the menu, add the attribute `data-open` or `data-toggle` to any element. That element will then open or toggle the menu when clicked on. The value of the data attribute should be the ID of the off-canvas.