Skip to content

Commit 95b2080

Browse files
authored
Merge pull request #149 from w3c/hotfix/#670-table-content-alignment
Use same vertical alignment for td, and th outside of thead/tfoot
2 parents b8ed414 + 10cbfad commit 95b2080

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

assets-src/styles/sass/30-base/_tables.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,15 @@ table caption {
3333
}
3434
}
3535

36-
th {
37-
vertical-align: bottom;
36+
td, th {
37+
vertical-align: text-top;
3838
}
3939

4040
thead th,
4141
tfoot th {
4242
background-color: $deep-blue;
4343
color: $white;
44-
}
45-
46-
td {
47-
vertical-align: text-top;
44+
vertical-align: bottom;
4845
}
4946

5047

public/dist/assets/styles/core.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,18 +1938,15 @@ table caption {
19381938
text-align: start; /* 1 */
19391939
}
19401940

1941-
th {
1942-
vertical-align: bottom;
1941+
td, th {
1942+
vertical-align: text-top;
19431943
}
19441944

19451945
thead th,
19461946
tfoot th {
19471947
background-color: #024488;
19481948
color: #fff;
1949-
}
1950-
1951-
td {
1952-
vertical-align: text-top;
1949+
vertical-align: bottom;
19531950
}
19541951

19551952
/**

public/dist/assets/styles/core.min.css

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

0 commit comments

Comments
 (0)