From e989acfc7966b78c09bc9bbdb4e9284b983074b4 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 18 Aug 2013 21:43:05 -0700 Subject: Add responsive tables with help of `.table-responsive` wrapper --- css.html | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 108 insertions(+), 7 deletions(-) (limited to 'css.html') diff --git a/css.html b/css.html index 5a2f2582a..de0d3dc9b 100644 --- a/css.html +++ b/css.html @@ -98,8 +98,8 @@ base_url: "../"

Grid options

See how aspects of the Bootstrap grid system work across multiple devices with a handy table.

-
- +
+
@@ -1217,11 +1217,10 @@ For example, <section> should be wrapped as inline. {% endhighlight %} -

Contextual classes

Use contextual classes to color table rows or individual cells.

-
-
+
+
@@ -1332,6 +1331,108 @@ For example, <section> should be wrapped as inline. {% endhighlight %} + +

Responsive tables

+

Create responsive tables by wrapping any .table in .table-responsive to make them scroll horizontally up to small devices (under 768px).

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Table headingTable headingTable headingTable headingTable headingTable heading
1Table cellTable cellTable cellTable cellTable cellTable cell
2Table cellTable cellTable cellTable cellTable cellTable cell
3Table cellTable cellTable cellTable cellTable cellTable cell
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Table headingTable headingTable headingTable headingTable headingTable heading
1Table cellTable cellTable cellTable cellTable cellTable cell
2Table cellTable cellTable cellTable cellTable cellTable cell
3Table cellTable cellTable cellTable cellTable cellTable cell
+
+ +{% highlight html %} +
+ + ... +
+
+{% endhighlight %} + @@ -2117,7 +2218,7 @@ For example, <section> should be wrapped as inline.

For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.

Responsive classes

-
+
@@ -2204,7 +2305,7 @@ For example, <section> should be wrapped as inline.

Print classes

-
+
-- cgit v1.2.3