2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Fixes #6954: properly reset grid classes within tables

This commit is contained in:
Mark Otto
2013-02-28 22:47:32 -08:00
parent bfc4aaf6e8
commit 4418c82888
2 changed files with 15 additions and 8 deletions
+7 -3
View File
@@ -975,11 +975,15 @@ th {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
table td[class*="span"], table col[class^="span"] {
table th[class*="span"] { display: table-column;
float: none;
}
table td[class^="span"],
table th[class^="span"] {
display: table-cell; display: table-cell;
float: none; float: none;
margin-left: 0;
} }
.table tbody tr.success > td { .table tbody tr.success > td {
+8 -5
View File
@@ -177,12 +177,15 @@ th {
// TABLE CELL SIZING // TABLE CELL SIZING
// ----------------- // -----------------
// Reset default grid behavior // Reset default table behavior
table td[class*="span"], table col[class^="span"] {
table th[class*="span"] { float: none;
display: table-column;
}
table td[class^="span"],
table th[class^="span"] {
float: none;
display: table-cell; display: table-cell;
float: none; // undo default grid column styles
margin-left: 0; // undo default grid column styles
} }
// TABLE BACKGROUNDS // TABLE BACKGROUNDS