์ด๊ธฐํ์ฝ๋๋ก form ๋์์ธ ์์ ๊ธฐ
์์ ์ฝ๋
<form>
<fieldset>
<legend>๋ฌธ์์์ฑํ๊ธฐ</legend>
<div class="inquri_wrap">
<table>
<caption>๋ฌธ์ํ๊ธฐํ
์ด๋ธ</caption>
<tr>
<th class="col01">์ด๋ฆ<i class="star"></i></th>
<td><input type="text" readonly value="๋ฐํจ์ง" title="์ด๋ฆ์
๋ ฅ"></td>
</tr>
<tr>
<th>์ฐ๋ฝ์ฒ<i class="star"></i></th>
<td><input type="text" title="์ฐ๋ฝ์ฒ์
๋ ฅ"></td>
</tr>
<tr>
readonly
์ด๋ฆ ๋ถ๋ถ์ด ๋จผ์ ๋ค์ด๊ฐ์๊ณ ์ฌ์ฉ์๊ฐ ์ธ์ ์๋๋ก ๋ฏธ๋ฆฌ ์ง์ ํด์ค๋ค
<td><input type="text" readonly value="๋ฐํจ์ง" title="์ด๋ฆ์ ๋ ฅ"></td>
(title ๋ฏธ์ ์ฉ์ ์น ์ ๊ทผ์ฑ ๊ฒฝ๊ณ )
ํ ๋์์ธ
ํ ์ด๋ธ์ ์ฒซํ ์น์ ์ด ์์ผ๋ฏ๋ก thead๋ ํ์์์
๋จ th๋ก ์ฒซ์ด ์นธ์ด๋ฆ์ ์ง์ ํ์ฌ ํด๋์ค๋ช ์ผ๋ก ๋์ด๋ฅผ ์ง์ ํ ์ ์๊ฒํ๋ค.
<!-- thead๊ฐ ์์๊ฒฝ์ฐ table-layout:fixed ์์ด์ผ ๊ธธ์ด ์กฐ์ ๋จ -->
html ์์ฑ ์ )
<th class="col01">์ด๋ฆ<i class="star"></i></th>
ํ ๊ธธ์ด ์๋์กฐ์
.inquiry_page .inquiry_area table {
table-layout: auto;
}
๋ํ ์ผ ๋์์ธ ์กฐ์
.inquiry_page .inquiry_area th {
border-bottom: 1px solid #e8e8e8;
padding: 12px 0;
text-align: left;
font-weight: 500;
}
์ง์ ํด์คฌ๋ ์ฒซํ์นธ์ ํด๋์ค๋ช ์ผ๋ก ๋์ด์กฐ์
.inquiry_page .inquiry_area .col01 {
width: 130px;
}
.inquiry_page .inquiry_area td {
border-bottom: 1px solid #e8e8e8;
padding: 12px 0;
}
์์ฑ์ ํ์์ focus ๋ก ํ ๋๋ฆฌ์ ์์ ์ฃผ๊ธฐ
'HTML๐จ > html&css ํผ์์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
css text area ๊ณ ์ ๋ด์ฉ์ ๋ ฅ (placeholder ์ค๋ฐ๊ฟํ๊ทธ ) (0) | 2022.10.10 |
---|---|
css ์ด๋ฉ์ผ select option๋ฐ์ค ๋ง๋ค๊ธฐ (0) | 2022.10.10 |
css radio ๋ง๋ค๊ธฐ (0) | 2022.10.10 |
html form , input ์์ ์ ๋ฆฌ (0) | 2022.10.10 |
html lavel for ํผ ์์์ ์ด๋ฆ์ง์ ํ๊ทธ (0) | 2022.10.09 |
๋๊ธ