Start Shvoong > Cărţi > Dimensionarea unui tabel

.

Dimensionarea unui tabel

Autor : Info Club
Review by : harrypotter401
Vizite: 56
cuvinte: 300
Publicat în: noiembrie 22, 2007
Dimensiunile unui tabel - latimea si inaltimea - pot fi stabilite exact prin intermediul a doua atribute, width si height, ale etichetei <table>.Valorile acestor atribute pot fi:
numere intregi pozitive reprezentand latimea respectiv inaltimea in pixeli a tabelului;
numere intregi intre 1 si 100, urmate de semnul %, reprezentand fractiunea din latimea si inaltimea totala a paginii.



<html><head><title>tabelex_7</title></head>
<body><h1 align=center>Un tabel de de 200 pixeli X 50 %</h1><hr>
<table border="0" width="200" height="50%">
<tr>
<td>cell 11</td>
<td>cell 12</td></tr>
<tr>
<td>cell 21</td>
<td>cell 22</td></tr>
</table>
</body>
</html>





In exemplul urmator se utilizeaza un truc care permite afisarea intr-o pagina Web a unui text pozitionat in centrul paginii.


<html><head><title>tabelex_8</title></head>
<body><h1 align=center>Un text centrat intr-o pagina</h1>
<table width="100%" height="100%">
<tr>
<td align="center">
<h2>Text centrat.</h2>
</table>
</body>
</html>
Vă rugăm evaluaţi acest rezumat : 1 2 3 4 5


Read Free Summaries - Write and Get Paid

Summarize Human Knowledge on Shvoong. Join us!

------

Recent Shvoongers

  • harrypotter401
  • Claudia
  • Kokosia
  • nae2007
  • proars
  • Sara_Blu
  • Mok_aid
  • tperry
  • CristinaParus
  • fairytales
  • Gavrochette
  • ymae
  • RezsoLazar
  • checkefe
  • Ioni
  • kybalion

.