colgroup, col
테이블 내 컬럼의 그룹 요소를 정의하는데 유용하게 사용 할 수 있다.
<table style="width: 100%">
<colgroup>
<col width="20%">
<col width="20%">
<col width="20%">
<col width="20%">
<col width="20%">
</colgroup>
<tbody id="my_tbody">
<tr>
<td>가</td>
<td>나</td>
<td>다</td>
<td>라</td>
<td>마</td>
</tr>
</tbody>
</table>
출처>
colgroup:
The HTML <colgroup> element defines a group of columns within a table.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup
col
The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col
'etc > html, css' 카테고리의 다른 글
[html] style opacity 이해 (0) | 2020.06.09 |
---|---|
[html] 특수문자 '&' 사용 경고 - (warning) Invalid character used in text string, 이클립스 (0) | 2020.06.07 |
[CSS] 테이블의 필요한 칸(컬럼)에 줄 넣기 - style: border, top, bottom, left, right (0) | 2020.05.21 |
[html] 링크 밑줄을 보이지 않게 처리 text-decoration: none; - <a href=""></a> (0) | 2016.05.27 |
[html] 한글이 제대로 보여지지 않을 때 (0) | 2016.05.27 |