]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add code snippet 19863/head
authorMark Otto <markdotto@gmail.com>
Sun, 8 May 2016 21:16:23 +0000 (14:16 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 8 May 2016 21:16:23 +0000 (14:16 -0700)
docs/content/tables.md

index 0ab0b538d4f38cf0ed8bd4d0d7ca7c44c992fadb..fc6a6b19b2c1d2163feff60c16c639be100dfca3 100644 (file)
@@ -511,6 +511,24 @@ Regular table background variants are not available with the inverse table, howe
   </table>
 </div>
 
+{% highlight html %}
+<!-- On rows -->
+<tr class="bg-primary">...</tr>
+<tr class="bg-success">...</tr>
+<tr class="bg-warning">...</tr>
+<tr class="bg-danger">...</tr>
+<tr class="bg-info">...</tr>
+
+<!-- On cells (`td` or `th`) -->
+<tr>
+  <td class="bg-primary">...</td>
+  <td class="bg-success">...</td>
+  <td class="bg-warning">...</td>
+  <td class="bg-danger">...</td>
+  <td class="bg-info">...</td>
+</tr>
+{% endhighlight %}
+
 {% capture callout-include %}{% include callout-warning-color-assistive-technologies.md %}{% endcapture %}
 {{ callout-include | markdownify }}