Skip to content

Commit 9d60e7b

Browse files
committed
Fix table captions
Glitch reported by @malarky. Removed special display/position handling.
1 parent e97562a commit 9d60e7b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/css/table.css

+7-8
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,15 @@ table.tableblock tbody td.tableblock p.tableblock {
7979
}
8080

8181
table.tableblock .title {
82-
display: inline-block;
82+
/* display: table-caption;
83+
compresses caption on e.g.
84+
https://docs.couchbase.com/server/current/backup-restore/enterprise-backup-restore.html
85+
into single cell at width < 768px.
86+
*/
87+
display: block;
8388
width: 100%;
8489
padding: 10px 0 0;
85-
margin-bottom: 10px;
90+
margin: 10px 0;
8691
}
8792

8893
.doc .admonitionblock td.icon {
@@ -131,12 +136,6 @@ table.table-tutorial tr td:last-child {
131136
position: relative;
132137
}
133138

134-
table.tableblock caption.title {
135-
position: absolute;
136-
left: 0;
137-
top: -30px;
138-
}
139-
140139
table.tableblock.caption-table,
141140
div.ulist + table.tableblock,
142141
table.tableblock + table.tableblock {

0 commit comments

Comments
 (0)