1. 로그인 폼
1-1) 결과
1-2) 코드
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>로그인 폼</title>
<style type="text/css">
ul {
list-style-type: none;
}
#btns {
text-decoration: underline;
}
#btns li {
display: inline;
margin-left: 10px;
}
#id_pass, #login_btn {
display: inline-block;
vertical-align: top; <!--정렬-->
}
#login_box input {
width: 100px;
height: 18px;
}
#login_box {
width: 300px;
height: 150px;
border: solid 1px #bbbbbb;
border-radius: 15px;
margin: 10px 0 0 10px;
padding: 10px 0 0 15px;
}
span {
display: inline-block;
width: 20px;
}
#login_btn button {
margin-left: 5px;
padding: 12px;
border-radius: 5px;
}
* {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<form>
<div id="login_box">
<h2>Member Login</h2>
<ul id="input_button">
<li id="id_pass">
<ul>
<li>
<span>Id</span>
<input type="text">
</li>
<li id="pass">
<span>PW</span>
<input type="password">
</li> <!--id-->
</ul>
</li>
<li id="login_btn">
<button>로그인</button>
</li> <!--pw-->
</ul>
<ul id="btns">
<li>회원가입</li>
<li>아이디/비밀번호찾기</li>
</ul><!--login_box-->
</div>
</form>
</li>
</ul>
</div>
</body>
</html>
2. 회원가입 양식 만들기
2-1) 결과
2-2) 코드
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
ul {
list-style-type: none;
}
* {
margin: 0;
padding: 0;
}
.cols li {
display: inline-block;
margin-top: 5px;
}
.cols li.col1 {
width: 100px;
text-align: right;
}
.cols li.col2 {
width: 350px;
}
.cols li.col2 input.hp {
width: 35px;
}
#intro {
vertical-align: top;
}
</style>
</head>
<body>
<h3>가입 양식</h3>
<form>
<ul id="mem_form">
<li>
<ul class="cols">
<li class="col1">아이디 :</li>
<li class="col2"><input type="text"></li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">비밀번호 :</li>
<li class="col2"><input type="password"></li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">비밀번호 확인 :</li>
<li class="col2"><input type="password"></li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">이름 :</li>
<li class="col2"><input type="text"></li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">성별 :</li>
<li class="col2"><input type="radio" name="sex" selected> 여성
<input type="radio" name="sex"> 남성 </li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">휴대전화 :</li>
<li class="col2">
<select>
<option>010</option>
<option>011</option>
<option>017</option>
</select> -
<input class="hp" type="text"> - <input class="hp" type="text"></li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">이메일 :</li>
<li class="col2"><input id="email1" type="text"> @
<select id="email2">
<option>선택</option>
<option>naver.com</option>
<option>hanmail.net</option>
<option>gmail.com</option>
</select></li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">취미 :</li>
<li class="col2">
<input type="checkbox" name="hobby1"> 음악감상
<input type="checkbox" name="hobby2"> 독서
<input type="checkbox" name="hobby3"> 등산</li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1" id="intro">자기소개 :</li>
<li class="col2">
<textarea cols="35" rows="5"></textarea></li>
</ul>
</li>
<li>
<ul class="cols">
<li class="col1">파일 첨부 :</li>
<li class="col2">
<input type="file">* 2MB까지 가능</li>
</ul>
</li>
</ul>
</form>
</body>
</html>
'AfterSchool > html 방과후' 카테고리의 다른 글
CSS: 블록박스와 인라인 박스개념 및 예시(0512) (0) | 2022.05.13 |
---|---|
CSS: 버스표 예매 페이지와 회원가입 양식 만들기(0510) (0) | 2022.05.12 |
CSS: 테이블경계선(0419) (0) | 2022.04.19 |
CSS: 박스와 경계선(0414) (0) | 2022.04.14 |
CSS: 배경 색상&이미지 삽입(0412) (0) | 2022.04.12 |