Skip to content

Commit 9991f3f

Browse files
committed
resolve problem with nested tables having double borders
1 parent d74dee5 commit 9991f3f

File tree

5 files changed

+59
-5
lines changed

5 files changed

+59
-5
lines changed

bootstrap.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Tue Oct 4 01:16:04 PDT 2011
9+
* Date: Fri Oct 7 23:53:08 PDT 2011
1010
*/
1111
/* Reset.less
1212
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -1083,9 +1083,12 @@ table td {
10831083
table th + th, table td + td {
10841084
border-left: 1px solid #ddd;
10851085
}
1086-
table tr + tr td {
1086+
table tr td {
10871087
border-top: 1px solid #ddd;
10881088
}
1089+
table tr:first-child td {
1090+
border-top: 0;
1091+
}
10891092
table tbody tr:first-child td:first-child {
10901093
-webkit-border-radius: 4px 0 0 0;
10911094
-moz-border-radius: 4px 0 0 0;

bootstrap.min.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,53 @@ <h3>Example: Default table styles</h3>
869869
<td>Dent</td>
870870
<td>Code</td>
871871
</tr>
872+
<tr>
873+
<td colspan="4">
874+
span 4 columns
875+
</td>
876+
</tr>
877+
<tr>
878+
<td colspan="2">
879+
span 2 columns
880+
</td>
881+
<td colspan="2">
882+
span 2 columns
883+
</td>
884+
</tr>
885+
<tr>
886+
<td colspan="2">
887+
<table>
888+
<thead>
889+
<tr>
890+
<th>1</th>
891+
<th>2</th>
892+
</tr>
893+
</thead>
894+
<tbody>
895+
<tr>
896+
<td>1</td>
897+
<td>2</td>
898+
</tr>
899+
</tbody>
900+
</table>
901+
</td>
902+
<td colspan="2">
903+
<table>
904+
<thead>
905+
<tr>
906+
<th>1</th>
907+
<th>2</th>
908+
</tr>
909+
</thead>
910+
<tbody>
911+
<tr>
912+
<td>1</td>
913+
<td>2</td>
914+
</tr>
915+
</tbody>
916+
</table>
917+
</td>
918+
</tr>
872919
</tbody>
873920
</table>
874921
<pre class="prettyprint linenums">

lib/scaffolding.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ a {
7777

7878
.row {
7979
.clearfix();
80-
margin-left: -1 * @gridGutterWidth;
80+
margin-left: -@gridGutterWidth;
8181
}
8282

8383
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)

lib/tables.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ table {
3434
td + td {
3535
border-left: 1px solid #ddd;
3636
}
37-
tr + tr td {
37+
tr td {
3838
border-top: 1px solid #ddd;
3939
}
40+
tr:first-child td {
41+
border-top: 0;
42+
}
4043
tbody tr:first-child td:first-child {
4144
.border-radius(4px 0 0 0);
4245
}

0 commit comments

Comments
 (0)