Skip to content

Commit 68053fc

Browse files
committed
calm the tables resets down
allows support for html appearance attribute features available for tables while resetting styles nicely
1 parent 9eec76f commit 68053fc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

css/reset.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
html,
1212
iframe, canvas,
1313
img, svg, video, audio,
14-
input, textarea, select, button
14+
input, textarea, select, button,
15+
table, caption, tbody, tfoot, thead, tr, th, td
1516
):not(svg *, symbol *)) {
1617
all: unset;
1718
display: revert;
@@ -25,6 +26,16 @@
2526
appearance: auto;
2627
}
2728

29+
/* resets table styles nicely so html attribute features are still preserved */
30+
:where(table, caption, tbody, tfoot, thead, tr, th, td) {
31+
margin: unset;
32+
padding: unset;
33+
border:unset;
34+
background: unset;
35+
border-collapse: collapse;
36+
border-spacing: 0;
37+
}
38+
2839
/* Reapply the pointer cursor for anchor tags */
2940
a, button {
3041
cursor: revert;

0 commit comments

Comments
 (0)