테이블안에 테이블이 들어간단말이야~?
한번 시도해봐야겠다.
해서 만들어봄 결과는 성공!
HTML
<table border="1" width="200px" bgcolor="pink">
<!-- 핑크색 table박스 -->
<colgroup>
<col style="width : 50%;">
<col style="width : 50%;">
</colgroup>
<tr valign="top">
<td>
<!-- 파란색 table박스 -->
<table border="1" width="200" height="50" bgcolor="blue">
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</td>
<tr>
<td>
<table border="1" width="200" heaight="100" bgcolor="red">
<!-- 빨간색 table박스 -->
<tr>
<td>
</td>
</tr>
</table>
</td>
<td>
<table border="1" width="200" height="100" bgcolor="yellow">
<!-- 노란색 table박스 -->
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
</td>
</tr>
</table>
CSS
table {
width:100%;
border-collapse: collapse;
border-spacing: 0;
}
'02. HTML , CSS , JS' 카테고리의 다른 글
DOM 다루기 :: 모든 li 태그 색상 변경 방법 (JavaScript 코드 예제) (0) | 2024.12.10 |
---|---|
[HTML, CSS] 테이블 header 고정(fixed) (0) | 2024.06.12 |
[HTML,CSS] <details> <summary> JS없이 접기/펼치기 기능구현 (0) | 2024.06.12 |
[CSS] CSS로 on/off체크박스만들기 (0) | 2024.04.30 |
[jQuery]제이쿼리 활용하여 노드 찾는 방법 (0) | 2022.01.13 |