<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>~참치라이더~</title>
<link rel="icon" href="imgs/wave.ico">
<style type="text/css">
* {
	margin: 0;
	padding: 0;
}

li {
	list-style-type: none;
}

a {
	text-decoration: none;
	color: black;
}

a:hover {
	text-decoration: underline;
}

header {
	display: block;
	width: 100%;
	background: #E7E8E9;
	float: left;
	width: 100%;
	height: 70px;
}

header img {
	float: left;
	width: 100px;
}

header li {
	float: right;
	margin: 3px;
	padding: 25px;
}

footer {
	width: 95%;
	background: black;
}

#copy {
	display: block;
	float: right;
	color: #E7E8E9;
	font-size: 5px;
	float: right;
}

#container {
	min-height: calc(100vh - 100px);
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 100px);
}

#loginBox {
	position: inherit;
	display: block;
	border: 1px solid #E7E8E9;
	margin: 0px auto;
	padding: 10px;
	width: fit-content;
}

#loginBtn {
	background: none;
	border: 1px solid black;
	margin: 5px;
	padding: 2px;
}

#loginA {
	width: 50px;
}

#loginB {
	width: 150px;
}
</style>
<script type="text/javascript">
	function login(inputID, inputPW) {
		if (inputID == "" || inputPW == "") {
			alert("ID와 PW가 입력되지않았습니다.")
		} else {
			alert("안녕하세요!");
		}
	}
</script>
</head>
<body>
	<div class="wrap">
		<header>
			<h1>
				<a href="main.html"> <img alt="tuna" src="imgs/fish.png">
			</h1>
			<ul>
				<li><a href="#">회원가입</a></li>
				<li><a href="#">ID/PW 찾기</a></li>
			</ul>
		</header>
		<div id="container">
			<div id="loginBox">
				<table>
					<tr>
						<!-- Login -->
						<td colspan=2><center>Login</center></td>
					</tr>
					<tr>
						<!-- ID -->
						<td id="loginA">ID</td>
						<td id="loginB"><input type="text" id="inputID"></td>
					</tr>
					<tr>
						<!-- PW -->
						<td>PW</td>
						<td><input type="password" id="inputPW"></td>
						<td><input type="submit" value="Login" id="loginBtn"
							onclick="login(inputID.value, inputPW.value)"></td>
					</tr>

				</table>
			</div>
		</div>
	</div>
	<footer>
		<div id="copy">
			<p>&copy;2021 All rights reserved.</p>
		</div>
	</footer>
</body>
</html>

'HTML·CSS' 카테고리의 다른 글

[HTML,CSS] jQuery를 이용한 아코디언 액션  (0) 2021.08.17
DOM , BOM 개념 정리  (0) 2021.08.12
[HTML CSS] 기본 구조  (0) 2021.08.10
HTML/CSS 태그  (0) 2021.08.03
HTML/CSS 구조  (0) 2021.08.03

+ Recent posts