mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
clear up table styles and docs to fix rowspan and colspan issues for bordered tables, per #1918
This commit is contained in:
+4
-4
@@ -64,13 +64,12 @@ table {
|
||||
|
||||
.table-bordered {
|
||||
border: 1px solid #ddd;
|
||||
border-left: 0;
|
||||
border-collapse: separate; // Done so we can round those corners!
|
||||
*border-collapse: collapsed; // IE7 can't round corners anyway
|
||||
.border-radius(4px);
|
||||
th + th,
|
||||
td + td,
|
||||
th + td,
|
||||
td + th {
|
||||
th,
|
||||
td {
|
||||
border-left: 1px solid #ddd;
|
||||
}
|
||||
// Prevent a double border
|
||||
@@ -78,6 +77,7 @@ table {
|
||||
tbody:first-child tr:first-child th,
|
||||
tbody:first-child tr:first-child td {
|
||||
border-top: 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
// For first th or td in the first row in the first thead or tbody
|
||||
thead:first-child tr:first-child th:first-child,
|
||||
|
||||
Reference in New Issue
Block a user