0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01: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

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 {

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