728x90
로그인 페이지 만들기!
*이미지 URL : https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>스파르타코딩클럽 | 로그인페이지</title>
<style>
.mytitle {
color: white;
width: 300px;
height: 200px;
background-image: url('https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg');
background-position: center;
background-size: cover;
border-radius: 10px;
text-align: center;
padding-top: 40px;
}
.wrap {
margin: 10px auto;
width: 300px;
}
</style>
</head>
<body>
<div class="wrap">
<div class="mytitle">
<h1>로그인 페이지</h1>
<h5>아이디, 비밀번호를 입력해주세요</h5>
</div>
<div>
<p>
ID: <input type="text" />
</p>
<p>
PW: <input type="password" />
</p>
</div>
<button>로그인하기</button>
</div>
</body>
</body>
</html>
<title>스파르타코딩클럽 | 로그인페이지</title> 이 부분 바로 아래줄의 <style>코드블록</style> 의 코드블록이 CSS이다.
↓↓위 코드의 결과↓↓
728x90
'TIL저장소' 카테고리의 다른 글
[스파르타코딩클럽]웹개발 2주차 jQuery 기초 (0) | 2021.06.21 |
---|---|
[스파르타코딩클럽]javascript 기초 문법/console에서 엔터하는 방법 (0) | 2021.06.21 |
[스파르타코딩클럽]웹개발 1주차-자바스크립트 시작하기 (0) | 2021.06.21 |
[스파르타코딩클럽]웹개발 1주차 부트스트랩(bootstrap) 사용법 (0) | 2021.06.21 |
[스파르타코딩클럽]웹개발 종합반 1주차(html/css/javascript) (0) | 2021.06.17 |