diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 88db0c0444..ab0a0731a1 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -1753,6 +1753,13 @@ table {
background-color: #f5f5f5;
}
+table [class*=span],
+.row-fluid table [class*=span] {
+ display: table-cell;
+ float: none;
+ margin-left: 0;
+}
+
table .span1 {
float: none;
width: 44px;
diff --git a/less/tables.less b/less/tables.less
index 8bd563a062..ecd92233db 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -147,7 +147,15 @@ table {
// TABLE CELL SIZING
// -----------------
-// Change the columns
+// Reset default grid behavior
+table [class*=span],
+.row-fluid table [class*=span] {
+ display: table-cell;
+ float: none; // undo default grid column styles
+ margin-left: 0; // undo default grid column styles
+}
+
+// Change the column widths to account for td/th padding
table {
.span1 { .tableColumns(1); }
.span2 { .tableColumns(2); }
diff --git a/less/tests/css-tests.html b/less/tests/css-tests.html
index 017aa84f18..a61f6923a7 100644
--- a/less/tests/css-tests.html
+++ b/less/tests/css-tests.html
@@ -458,6 +458,73 @@
+
Grid sizing
+
+
+
+
+
+ 1 |
+ 2 |
+ 3 |
+
+
+
+
+ 1 and 2 |
+ 3 |
+
+
+ 1 |
+ 2 |
+ 3 |
+
+
+ 1 |
+ 3 |
+
+
+ 2 and 3 |
+
+
+
+
+
+
+Fluid grid sizing
+
+
+
+
+
+ 1 |
+ 2 |
+ 3 |
+
+
+
+
+ 1 and 2 |
+ 3 |
+
+
+ 1 |
+ 2 |
+ 3 |
+
+
+ 1 |
+ 3 |
+
+
+ 2 and 3 |
+
+
+
+
+
+
+