과제1
더보기
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>개인과제01</title>
<!--외부스타일시트-->
<link href="../resources/css/homework.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 4. 화면을 꽉 채우는 배경 이미지 배치 -->
<div id="menu" class="big-bg">
<!-- 2. header 만들기 -->
<header class="page-header wrapper">
</header>
<!-- 3. 콘텐츠 부분 만들기 -->
<div class="menu-content wrapper">
<div>
<img class="colorlogo" src="../resources/images/인스타폰트.jpg" >
</div>
<div>
<img class="colorlogo1" src="../resources/images/아이디비번.png" >
</div>
<a class="button" href="개인과제02.html" target="_blank"><b>로그인</b></a>
<br>
<div>
<img class="colorlogo2" src="../resources/images/또는.png" >
</div>
<div class="pwd">
<p>비밀번호를 잊으셨나요?</p>
</div>
</div>
<br>
<div class="menu-content1">
계정이 없으신가요? <b class="join">가입하기</b>
</div>
<br>
<div class="menu-content2">
앱을 다운로드 하세요
</div>
<br>
<div class="download">
<img src="../resources/images/다운로드하세요.png">
</div>
</div>
<!-- 4. 푸터 만들기 -->
<footer>
<div class="wrapper">
<p><small>Meta
소개
블로그
채용 정보
도움말
API
개인정보처리방침
약관
인기 계정
해시태그
위치
Instagram Lite
<br>
뷰티
댄스
피트니스
식음료
집 및 정원
음악
시각 예술
<br>
한국어
© 2022 Instagram from Meta</small></p>
</div>
</footer>
</div>
</body>
</html>
css
@charset "UTF-8"; /* 인코딩 문자 깨짐 방지 */
html {
/* 사용자 설정 문자 크기 그대로 반영 되도록 */
font-size : 100%;
}
body {
background-color: white;
text-align: center;
line-height: 2.0;
}
a {
text-decoration: none;
}
img {
max-width: 100%;
}
/* menu ----------------------------------------------------- */
#menu {
background-color: white;
min-height: 80vh;
}
.menu-content {
display:inline-block;
background-color: white;
border : 1px;
border-style: solid;
border-color: #dbdbdb;
max-width: 500px;
height: 500px;
margin-top : 5%;
}
.colorlogo {
position : center;
width: 50%;
height : auto;
margin-top: 30px;
}
.colorlogo1 {
position : center;
width: 450px;
height : auto;
margin-top: 38px;
}
/* 버튼 */
.button {
background: #0095f6;
color : white;
padding: 12px 153px;
border-radius: 8px;
font-size: 1.15em;
}
.colorlogo2 {
position : center;
width: 400px;
height : auto;
margin-top: 30px;
}
.pwd {
text-align: center;
color : #8e8e8e;
margin-top: 10px;
}
.menu-content1 {
display:inline-block;
background-color: white;
border : 1px;
border-style: solid;
border-color: #dbdbdb;
width: 500px;
height: 60px;
margin-top : 20px;
font-size: larger;
list-style: none;
text-align: center;
padding-top: 20px;
}
.join {
color:#0095f6;
}
.menu-content2 {
display:inline-block;
background-color: white;
border : 1px;
border-style: solid;
border-color: white;
width: 500px;
height: 40px;
margin-top : 20px;
font-size: larger;
list-style: none;
text-align: center;
padding-top: 10px;
}
.menu-content .page-title {
text-align: center;
}
.wrapper {
background-color: white;
}
.download {
position:center;
display:inline-block;
width:400px;
height:auto;
padding-top: 10px;
}
/* for mobile ----------------------------------- */
@media (max-width : 600px) {
.menu-content {
margin-top: 20%;
}
}
'문제 풀이 > HTML5·CSS3 문제풀이' 카테고리의 다른 글
HTML 화면 구현 과제 (0) | 2022.02.09 |
---|