WEB.CSS
chapter34_form
GAWON
2023. 5. 19. 09:12
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
.d1 {
border-radius: 5px;
background-color: #CCCCFF;
margin: auto;
width: 450px;
height: 200px;
text-align: center;
}
```
.a1 {
padding: 5px 0 0 0;
```
}
.i1 {
width: 93%;
margin: auto;
font-size: 15px;
}
.s1 {
width: 95%;
margin: auto;
font-size: 15px;
}
.sp1 {
float: left;
margin: 10px 0 0 10px;
font-size: 15px;
}
input[type="submit"] {
background-color: red;
color: white;
border-style: none;
width: 95%;
height: 20px;
border-radius: 3px;
font-size: 10px;
}
</style>
</head>
<body>
<div class="d1">
<form action="#">
<span class="sp1">이름</span>
<input class="i1" type="text" placeholder="이름">
<br>
<span class="sp1">나이</span>
<input class="i1" type="text" placeholder="나이">
<br>
<span class="sp1">주소</span>
<select class="s1">
<option>::주소선택::</option>
<option>서울</option>
<option>경기</option>
<option>인천</option>
</select>
<br>
<input type="submit" value="전송">
</form>
</div>
</body>
</html>