728x90
λ μ΄μμ : μ΄λ―Έμ§ μ ν01
λ€μκ³Ό κ°μ μ΄λ―Έμ§ μ νμ λ μ΄μμμ μμ ν΄ λ³΄λλ‘ νκ² μ΅λλ€.
HTML μμ€
μΉ΄λ μ νκ³Ό μ μ¬νκ², λ κ°μ μΉ΄λλ₯Ό λ§λ€μ΄ μ΄λ―Έμ§λ₯Ό λ°±κ·ΈλΌμ΄λ λ°©μμΌλ‘ μ½μ νμ΅λλ€. μΉ νμ€ μ€μλ₯Ό μν΄, a νκ·Έμλ titleμ μΆκ°ν΄ μ£Όμμ΅λλ€.
<section id="imageType01" class="card__wrap nexon section">
<h2>μΈμμ κ·μ¬μ΄ λλμ΄</h2>
<p>κ°μμ§ μ’
λ₯λ λ§€μ° λ€μν©λλ€. νμ§λ§ νλκ°μ΄ μ λ§ κ·μ½μ΅λλ€.</p>
<div class="image__inner container">
<div class="image img1">
<h3 class="image__title">μΈμμ κ·μ¬μ΄ λλμ΄</h3>
<p class="image__desc">λκ° λλλ λλμ΄λ μ°Έ κ·μ½λ€.<br>
μ λλ λλμ΄κ° μμκΉ?</p>
<a class="image__btn" href="#" title="μμΈν 보기">
<div class="more">μμΈν 보기</div>
</a>
</div>
<div class="image img2">
<h3 class="image__title">μΈμμ κ·μ¬μ΄ λλμ΄</h3>
<p class="image__desc">λκ° λλλ λλμ΄λ μ°Έ κ·μ½λ€.<br>
μ λλ λλμ΄κ° μμκΉ?</p>
<a class="image__btn blue" href="#" title="μμΈν 보기">
<div class="more">μμΈν 보기</div>
</a>
</div>
</div>
</section>
CSS μμ€
ν°νΈλ λ₯μ¨ Lv1 κ³ λμ μ¬μ©νμκ³ , display: flexλ₯Ό μ΄μ©νμ¬ λ κ°μ μ΄λ―Έμ§λ₯Ό κ°λ‘λ‘ λ°°μΉνμμ΅λλ€.
/* fonts */
@import url('https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css');
.nexon {
font-family: 'NexonLv1Gothic';
font-weight: 400;
}
/* reset */
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
/* common */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
}
.section {
padding: 120px 0;
}
.section>h2 {
font-size: 50px;
line-height: 1;
text-align: center;
margin-bottom: 20px;
}
.section>p {
font-size: 22px;
font-weight: 300;
color: #666;
text-align: center;
margin-bottom: 70px;
}
/* imageType */
.image__inner {
display: flex;
justify-content: space-between;
}
.image {
width: 49%;
height: 370px;
color: white;
padding: 200px 30px 30px 30px;
box-sizing: border-box;
}
.image.img1 {
background: url(img/img01_bg01.jpg) no-repeat center;
}
.image.img2 {
background: url(img/img01_bg02.jpg) no-repeat center;
}
.image__title {
font-size: 32px;
margin-bottom: 10px;
}
.image__desc {
font-size: 16px;
font-weight: 300;
margin-bottom: 10px;
line-height: 1.5;
}
.image__btn {
font-size: 16px;
color: #fff;
background: #E86E47;
padding: 10px 20px;
display: inline-block;
}
.image__btn.blue {
background: #00A8E5;
}
κ²°κ³Ό
728x90
'WebSite' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
μΉμ¬μ΄νΈ λ§λ€κΈ° : μ΄λ―Έμ§ μ ν λ μ΄μμ03 (11) | 2022.08.19 |
---|---|
μΉμ¬μ΄νΈ λ§λ€κΈ° : μ΄λ―Έμ§ μ ν λ μ΄μμ02 (5) | 2022.08.17 |
μΉμ¬μ΄νΈ λ§λ€κΈ° : μΉ΄λ μ ν λ μ΄μμ03 (17) | 2022.08.10 |
μΉμ¬μ΄νΈ λ§λ€κΈ° : μΉ΄λ μ ν λ μ΄μμ02 (12) | 2022.08.09 |
μΉμ¬μ΄νΈ λ§λ€κΈ° : μΉ΄λ μ ν λ μ΄μμ01 (12) | 2022.08.08 |
λκΈ