aboutsummaryrefslogtreecommitdiff
path: root/docs/components/scrollspy.md
diff options
context:
space:
mode:
authorQuy <[email protected]>2016-12-31 16:12:28 -0800
committerMark Otto <[email protected]>2016-12-31 16:39:42 -0800
commitff8d28cf2501773ff6f7833865c8e2b2ebb76a3f (patch)
tree2287ed2a05f061cd80630e263746e03c8a321c1f /docs/components/scrollspy.md
parentbccb8ce21300f8da0bfefe1fdde9ab9d87994769 (diff)
downloadbootstrap-ff8d28cf2501773ff6f7833865c8e2b2ebb76a3f.tar.xz
bootstrap-ff8d28cf2501773ff6f7833865c8e2b2ebb76a3f.zip
Move .table-responsive from wrapper to .table
Diffstat (limited to 'docs/components/scrollspy.md')
-rw-r--r--docs/components/scrollspy.md69
1 files changed, 33 insertions, 36 deletions
diff --git a/docs/components/scrollspy.md b/docs/components/scrollspy.md
index 74829267e..a1f04ad9c 100644
--- a/docs/components/scrollspy.md
+++ b/docs/components/scrollspy.md
@@ -117,45 +117,42 @@ $('[data-spy="scroll"]').each(function () {
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-`, as in `data-offset=""`.
-<div class="table-responsive">
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 100px;">Name</th>
- <th style="width: 100px;">Type</th>
- <th style="width: 50px;">Default</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>offset</td>
- <td>number</td>
- <td>10</td>
- <td>Pixels to offset from top when calculating position of scroll.</td>
- </tr>
- </tbody>
- </table>
-</div>
+<table class="table table-bordered table-striped table-responsive">
+ <thead>
+ <tr>
+ <th style="width: 100px;">Name</th>
+ <th style="width: 100px;">Type</th>
+ <th style="width: 50px;">Default</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>offset</td>
+ <td>number</td>
+ <td>10</td>
+ <td>Pixels to offset from top when calculating position of scroll.</td>
+ </tr>
+ </tbody>
+</table>
### Events
-<div class="table-responsive">
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 150px;">Event Type</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>activate.bs.scrollspy</td>
- <td>This event fires whenever a new item becomes activated by the scrollspy.</td>
- </tr>
- </tbody>
- </table>
-</div>
+<table class="table table-bordered table-striped table-responsive">
+ <thead>
+ <tr>
+ <th style="width: 150px;">Event Type</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>activate.bs.scrollspy</td>
+ <td>This event fires whenever a new item becomes activated by the scrollspy.</td>
+ </tr>
+ </tbody>
+</table>
+
{% highlight js %}
$('#myScrollspy').on('activate.bs.scrollspy', function () {
// do something…