1/* 2 * tables.css 3 * 4 * Copyright (c) 2004 David Holroyd, and contributors 5 * See the file 'COPYING' for terms of use 6 * 7 * Part of the Docbook-CSS stylesheet 8 * http://www.badgers-in-foil.co.uk/projects/docbook-css/ 9 * 10 */ 11 12tgroup { 13 display: table; 14} 15 16row { 17 display: table-row; 18} 19 20thead { 21 display: table-header-group; 22} 23 24tbody { 25 display: table-row-group; 26} 27 28entry, entrytbl { 29 display: table-cell; 30} 31 32entry[valign=top] { 33 vertical-align: top; 34} 35entry[valign=bottom] { 36 vertical-align: bottom; 37} 38 39/* 40 * CSS can't generate the indended formatting for segmented lists, so we turn 41 * them into tables instead. 42 * 43 * TODO: seems to break formatting when nested in a table entry 44 */ 45segmentedlist { 46 display: table; 47} 48 49seglistitem { 50 display: table-row; 51} 52 53seg, segtitle { 54 display: table-cell; 55} 56 57segmentedlist>title { 58 display: table-caption; 59} 60