한번씩 읽고 가세요.
“ 지연되는 프로젝트에 인력을 더 투입하면 오히려 더 늦어진다. ”
- Frederick Philips Brooks
Mythical Man-Month 저자
728x90
이미지 텍스트 타입
사이트 만들기 혼자 만들어보기
<!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>Document</title>
<link href="https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css" rel="stylesheet">
<style>
* {
padding: 0;
margin: 0;
}
a {
text-decoration: none;
color: #000;
}
h1,h2,h3,h4,h5,h6 {
font-weight: normal;
}
img {
vertical-align: top;
width: 100%;
}
.mt10 {margin-top: 10px !important}
.mt20 {margin-top: 20px !important}
.mt30 {margin-top: 30px !important}
.mt40 {margin-top: 40px !important}
.mt50 {margin-top: 50px !important}
.mt60 {margin-top: 60px !important}
.mt70 {margin-top: 70px !important}
.mb10 {margin-bottom: 10px !important}
.mb20 {margin-bottom: 20px !important}
.mb30 {margin-bottom: 30px !important}
.mb40 {margin-bottom: 40px !important}
.mb50 {margin-bottom: 50px !important}
.mb60 {margin-bottom: 60px !important}
.mb70 {margin-bottom: 70px !important}
.container {
width: 1160px;
margin: 0 auto;
padding: 0 20px;
/* background-color: rgba(201, 16, 16, 0.1); */
}
.nexon {
font-family: 'NexonLv1Gothic';
font-weight: 400;
}
.section {
padding: 120px 0;
}
.section.center {
text-align: center;
}
.section__h2 {
font-size: 50px;
font-weight: 400;
margin-bottom: 30px;
line-height: 1;
}
.section__desc {
font-size: 22px;
color: #666;
margin-bottom: 70px;
font-weight: 300;
line-height: 1.5;
}
/* imgtext__wrap */
.imgtext__inner {
display: flex;
justify-content: space-between;
}
.imgtext__inner .header {
width: 373.3333px;
height: 500px;
text-align: left;
padding: 0 0;
}
.imgtext__inner .header h2 {
font-size: 50px;
margin-bottom: 25px;
line-height: 1.2;
}
.imgtext__inner .header h3 {
font-size: 16px;
margin-bottom: 15px;
line-height: 1.5;
color: #666;
}
.imgtext__inner .header ul {
font-size: 13px;
line-height: 1.6;
color: #666;
margin-left: 5px;
}
.header .small {
display: inline-block;
padding: 1px 30px;
background-color: #453318;
color: #fff;
font-size: 16px;
border-radius: 50px;
text-transform: uppercase;
margin-bottom: 16px;
}
.imgtext__inner .image {
width: 373.3333px;
height: 500px;
/* background-color: #c90505; */
}
.imgtext__inner .image img {
border-radius: 20px;
}
</style>
</head>
<body>
<section class="imgtext__wrap section center nexon">
<div class="container">
<div class="imgtext__inner">
<artcle class="header">
<span class="small">NOTICE</span>
<h2 class="title">나에게 맞는<br>인테리어 </h2>
<h3 class="title2">인테리어를 선택하는 것은 매우 개인적인 결정입니다. <br>그러나 일반적으로는 다음과 같은 단계를 거쳐 진행됩니다.
</h3>
<p>
<ul>
1. 스타일 결정하기: 먼저 자신이 선호하는 스타일을 결정해야 합니다. 전통적인, 현대적인, 귀여운, 거친 등 다양한 스타일이 있으며, 이 중 하나를 선택해야 합니다.<br>
2. 공간 파악하기: 다음으로는 공간을 파악해야 합니다. 방의 크기, 형태, 창문의 위치, 문의 위치 등을 고려해야 합니다.<br>
3. 가구 선택하기: 가구를 선택할 때는 공간과 스타일을 고려해야 합니다. 가구의 크기, 색상, 재질 등을 결정할 때도 스타일을 기반으로 선택해야 합니다.<br>
4. 색상 선택하기: 색상은 인테리어에 매우 중요한 역할을 합니다. 색상을 선택할 때는 스타일과 공간을 고려해야 합니다.
</ul>
</p>
</artcle>
<artcle class="image">
<figure class="img__wrap">
<img src="../asset/img/imgtextType_img01.png" alt="색을 고르는 법">
</figure>
</artcle>
<artcle class="image">
<figure class="img__wrap">
<img src="../asset/img/imgtextType_img02.png" alt="색을 고르는 법">
</figure>
</artcle>
</div>
</div>
</section>
</body>
</html>
한 개의 구성이기 때문에 섹션을 만든 후 안에 컨테이너 박스를 만들어줍니다.
그 후 css 리셋 값을 설정 합니다. 이번 페이지는 텍스트 1 이미지 1 이미지 1 이기 때문에 컨테이너 박스 안에
박스 3개를 생성해준다. 텍스트 박스도 큰제목 부제목 본문 으로 나눈후 덱스트를 입력합니다. 그 후 각 이름을 붙여주고
css를 설정해줍니다.
이미지박스 두개는 동일하게 img태그로 이미지를 넣어주고 figure 로 감싸줍니다.
다시 헤더로가서 css 적용
헤드 태그
.imgtext__inner .header
.imgtext__inner .header h2
.imgtext__inner .header h3
.imgtext__inner .header ul
.header .small
이미지태그
.header .small
.imgtext__inner .image
.imgtext__inner .image img