English | >> česky << | PortuguêsZVON > Tutorials > CSS2 tutorial
>> Příklad 42 << | Předešlý | Následující | Index | Obsah

Legenda k tabulce může být umistěna: top (nahoře - 1), bottom (dole - 2), left (vlevo - 3), a right (vpravo - 4).

XML dokumentCSS stylOdkaz na příklad
(1)
     <AAA>
          <XXX>xxxx</XXX>
          <BBB>
               <CCC>ccc1</CCC>
               <DDD>ddd1</DDD>
               <EEE>eee1</EEE>
          </BBB>
          <BBB>
               <CCC>ccc2</CCC>
               <DDD>ddd2</DDD>
               <EEE>eee2</EEE>
          </BBB>
     </AAA>

AAA {display: table}
XXX {display:table-caption; color:red; caption-side:top }
BBB {display: table-row}
CCC {display: table-cell}
DDD {display: table-cell}
EEE {display: table-cell}
Zobraz výstupy
XML dokumentCSS stylOdkaz na příklad
(2)
     <AAA>
          <XXX>xxxx</XXX>
          <BBB>
               <CCC>ccc1</CCC>
               <DDD>ddd1</DDD>
               <EEE>eee1</EEE>
          </BBB>
          <BBB>
               <CCC>ccc2</CCC>
               <DDD>ddd2</DDD>
               <EEE>eee2</EEE>
          </BBB>
     </AAA>

AAA {display: table}
XXX {display:table-caption; color:red; caption-side:bottom }
BBB {display: table-row}
CCC {display: table-cell}
DDD {display: table-cell}
EEE {display: table-cell}
Zobraz výstupy
XML dokumentCSS stylOdkaz na příklad
(3)
     <AAA>
          <XXX>xxxx</XXX>
          <BBB>
               <CCC>ccc1</CCC>
               <DDD>ddd1</DDD>
               <EEE>eee1</EEE>
          </BBB>
          <BBB>
               <CCC>ccc2</CCC>
               <DDD>ddd2</DDD>
               <EEE>eee2</EEE>
          </BBB>
     </AAA>

AAA {display: table}
XXX {display:table-caption; color:red;
caption-side:right; width:5em }
BBB {display: table-row}
CCC {display: table-cell}
DDD {display: table-cell}
EEE {display: table-cell}
Zobraz výstupy
XML dokumentCSS stylOdkaz na příklad
(4)
     <AAA>
          <XXX>xxxx</XXX>
          <BBB>
               <CCC>ccc1</CCC>
               <DDD>ddd1</DDD>
               <EEE>eee1</EEE>
          </BBB>
          <BBB>
               <CCC>ccc2</CCC>
               <DDD>ddd2</DDD>
               <EEE>eee2</EEE>
          </BBB>
     </AAA>

AAA {display: table}
XXX {display:table-caption; color:red;
caption-side:left; width:5em }
BBB {display: table-row}
CCC {display: table-cell}
DDD {display: table-cell}
EEE {display: table-cell}
Zobraz výstupy