Tabele si DIV-uri
Autor admin • Mar 22nd, 2007 • Categorie: Tutoriale CSS • Comentarii « Nici un comentariu »Tabele construite cu CSS sunt mult mai eficiente!Â
Tabel Simplu
< table >
 < tr >
 < td >
 < / td >
 < td >
 < / td >
 < / tr>
 < tr>
 < td >
 < / td >
 < td >
 < / td >
 < / tr>
< table >
Tabel cu DIV
< div class = “table” >
 < div class = “tr” >
 < div class = “td” > < / div >
 < div class = “td” > < / div >
 < / div >
 < div class = “tr” >
 < div class = “td” > < / div >
 < div class = “td” > < / div >
 < / div >
< / div >
definitiile celor trei noi clase vor contine proprietatile:
.table { display: table; }
.tr { display: table-row; }
.td { display: table-cell; }
Setand proprietatile de mai sus latimile coloanelor se vor transmite in sus/jos exact ca intr-un tabel normal.
Alte proprietati ale unui TABLE
TABLE { display: table }
TR { display: table-row }
THEAD { display: table-header-group }
TBODY { display: table-row-group }
TFOOT { display: table-footer-group }
COL { display: table-column }
COLGROUP { display: table-column-group }
TD, TH { display: table-cell }
CAPTION { display: table-caption }
Articole asemanatoare:
admin is Ana Design. V-a placut tot ce v-am recomandat in tutorial? Atunci nu uitati sa faceti un link catre articol si bookmark it!
Email this author | Toate articolele scrise de admin