English | česky | >> Português <<ZVON > Tutorials > CSS2 tutorial
>> Exemplo 43 << | Anterior | Próximo | Index | Conteúdos

A propriedade "display" numa tabela define se a tabela deve ser mostrada em contexto de caixa ("table" - 1) ou inserida no contexto do texto ("inline-table" - 2).

Documento XMLfolha de estilos CSSExemplo de ligação
(1)
     <TEXT>
          <html:p> start start start
               <AAA>
                    <BBB>
                         <CCC>ccc1</CCC>
                         <DDD>ddd1</DDD>
                         <EEE>eee1</EEE>
                    </BBB>
                    <BBB>
                         <CCC>ccc2</CCC>
                         <DDD>ddd2</DDD>
                         <EEE>eee2</EEE>
                    </BBB>
               </AAA> end end end
          </html:p>
     </TEXT>

AAA {display: table}
BBB {display: table-row}
CCC {display: table-cell}
DDD {display: table-cell}
EEE {display: table-cell}
Ver resultado
Documento XMLfolha de estilos CSSExemplo de ligação
(2)
     <TEXT>
          <html:p> start start start
               <AAA>
                    <BBB>
                         <CCC>ccc1</CCC>
                         <DDD>ddd1</DDD>
                         <EEE>eee1</EEE>
                    </BBB>
                    <BBB>
                         <CCC>ccc2</CCC>
                         <DDD>ddd2</DDD>
                         <EEE>eee2</EEE>
                    </BBB>
               </AAA> end end end
          </html:p>
     </TEXT>

AAA {display: inline-table}
BBB {display: table-row}
CCC {display: table-cell}
DDD {display: table-cell}
EEE {display: table-cell}
Ver resultado