Работа с таблицей, для сайта или простые таблицы с текстом
|
|
Вторник, 31 Июля 2007 г. 09:15
+ в цитатник
Работа с таблицами
Заголовок с 2 колонками
<*table border=1 bgcolor=maroon width=50%>
<*tr>
<*th colspan=2>
<*center>Родители<*/center>
<*/th>
<*/tr>
<*tr>
<*td align=center>Папа<*/td><*td align=center>Мама<*/td>
<*/tr>
<*/table><*br>
Заголовок с 4 колонками
<*table border=1 bgcolor=maroon width=50%>
<*tr>
<*th colspan=2 rowspan=3>
<*center>Имена<*/center>
<*/th>
<*/tr>
<*tr>
<*td align=center>Сергей<*/td><*td align=center>Игорь<*/td>
<*/tr>
<*tr>
<*td align=center>Наташа<*/td><*td align=center>Александр<*/td>
<*/tr>
<*/table><*br>
Имена
|
---|
Сергей | Игорь |
Наташа | Александр |
Заголовок с 4 колонками и шириной 25%
<*table border=1 bgcolor=maroon width=50%>
<*tr>
<*th>
Обычная
<*/th>
<*/tr>
<*tr>
<*td align=center width="25%">Текст1<*/td><*td align=center width="25%">Текст2<*/td>
<*/tr>
<*tr>
<*td align=center width="25%">Текст3<*/td><*td align=center width="25%">Текст4<*/td>
<*/tr>
<*/table><*br>
Обычная
|
---|
Текст1 | Текст2 |
Текст3 | Текст4 |
Заголовок с 4 колонками и высотой 30%, шириной 25%, таблица размером 50% от ширины и высоты колонок с текстом
<*table border=1 bgcolor=marron width=50% height=50%>
<*tr>
<*th>
Обычная 2
<*/th>
<*/tr>
<*tr>
<*td align=center height="30%" width="25%">Текст1<*/td><*td align=center height="30%" width="25%">Текст2<*/td>
<*/tr>
<*tr>
<*td align=center height="30%" width="25%">Текст3<*/td><*td align=center height="30%" width="25%">Текст4<*/td>
<*/tr>
<*/table><*br>
Обычная 2
|
---|
Текст1 | Текст2 |
Текст3 | Текст4 |
Метки:
веб-дизайн
помощь
совет
таблица
-
Запись понравилась
-
0
Процитировали
-
0
Сохранили
-