728x90
๋ฐ์ํ
โญ๏ธ ์ด๋ฏธ์ง ํ ์คํธ ์ ํ 01 โญ๏ธ
01. ๋ ์ด์์ ๊ตฌ์ํ๊ธฐ
๋ ์ด์์์ ๊ตฌ์ํ ๋๋, ์ค์ผ์นํ๋ฉด์ ์ธ๋ถ ๋ด์ฉ์ ์ ๋ณด๊น์ง ๊ตฌ์ฒด์ ์ผ๋ก ๊ณํํฉ๋๋ค.
02. ์์(div) ๋ง๋ค๊ธฐ : <body>
<section id="imgTextType" class="imgText__wrap nexon section gray">
<h2 class="blind">์ ์ฉํ ์ฌ์ดํธ ์ดํด๋ณด๊ธฐ</h2>
<div class="imgText__inner container">
<div class="imgText__txt">
<span>์ด๋ฏธ์ง ํ
์คํธ ์ ํ 01</span>
<h3>์ ์ฉํ ์ฌ์ดํธ ์ดํด๋ณด๊ธฐ</h3>
<p>์น ๋์์ด๋, ์น ํผ๋ธ๋ฆฌ์
, ํ๋ก ํธ ์ค๋ ๊ฐ๋ฐ์๋ฅผ ์ํ ์ ์ฉํ ์ฌ์ดํธ ์
๋๋ค.</p>
<ul>
<li><a href="/">ํํ ๋ฆฌ์ผ ์ฌ์ดํธ</a></li>
<li><a href="/">๋ํผ๋ฐ์ค ์ฌ์ดํธ</a></li>
<li><a href="/">์น ํฐํธ ์ฌ์ดํธ</a></li>
<li><a href="/">CSS ์ฌ์ดํธ</a></li>
<li><a href="/">WebGL ์ฌ์ดํธ</a></li>
<li><a href="/">Youtube ์ฌ์ดํธ</a></li>
</ul>
</div>
<div class="imgText__img img1">
<a href="/">๋ ํผ๋ฐ์ค ์ฌ์ดํธ</a>
</div>
<div class="imgText__img img2">
<a href="/" class="blue">ํํ ๋ฆฌ์ผ ์ฌ์ดํธ</a>
</div>
</div>
</section>
02. style(css) ์ค์ ํ๊ธฐ : <style>
/* 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; /* ๊ธฐ๋ณธ ๊ธ์ ๋๊ป๊ฐ ๋๊ป๊ธฐ ๋๋ฌธ์ ๋ณดํต ๊ตต๊ธฐ๋ก ๋ฐ๊ฟ */
}
li {
list-style: none; /* ๋ชฉ๋ก ์์ ๊ธฐ๋ณธ์ผ๋ก ์๊ธฐ๋ ์ ์์ ๊ธฐ */
}
/* blind */
.blind { /* ์ ๋ณด์ด๊ฒ ์จ๊ธฐ๊ธฐ */
position: absolute;
clip: rect(0 0 0 0);
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
}
/* common */ /* ๊ณตํต์ด๋ผ๋ ๊ฒ์ ๋ค๋ฅธ ์์
์์๋ ์ฌ์ฉํ ๊ฒ์์ ์๋ฆฌ๋ ๊ฒ */
.container {
width: 1160px; /* ๋ด์ฉ์ด ๋ค์ด์๋ ์ปจํ
์ด๋ ๋ฐ์ค์ ๋๋น ์ค์ */
padding: 0 20px; /* ์์ชฝ ์ฌ๋ฐฑ */
margin: 0 auto; /* ๊ฐ์ด๋ฐ ์ ๋ ฌ */
min-width: 1160;
}
.section {
padding: 120px 0;
}
.section > h2 { /* > ๋ฐ๋ก ๋ฐ์ ์๋ ์์์ ์ ํ */
font-size: 50px;
line-height: 1; /* ์ค๊ฐ๊ฒฉ ์ค์ */
text-align: center; /* ๊ธ์ ์ค์ ์ ๋ ฌ */
margin-bottom: 20px;
}
.section > p {
font-size: 20px;
font-weight: 300;
color: #666;
text-align: center;
margin-bottom: 70px;
}
.gray {
background-color: #f5f5f5;
}
/* imgTextType */
.imgText__inner {
display: flex;
justify-content: space-between;
}
.imgText__inner > div {
width: 32%;
height: 500px;
}
.imgText__txt span {
font-size: 16px;
color: #666;
text-decoration: underline;
text-underline-position: under; /* ๊ธฐ๋ณธ ๋ฐ์ค๋ณด๋ค ๊ธ์์ ๊ฐ๊น์ด ๋ถ์ด์๋๋ก */
margin-bottom: 20px;
display: block; /* span์ ๊ธฐ๋ณธ ์ฑ์ง์ธ ํ์ ์ด์ ํํ๋ก ๋ฐ๊ฟ์ค */
}
.imgText__txt h3 {
font-size: 50px;
font-weight: 300;
word-break: keep-all; /* ์ด์ ๋จ์(๋์ด์ฐ๊ธฐ ๋จ์)๋ก ์ค๋ฐ๊ฟ์ด ๋๋๋ก ํจ */
line-height: 1.4;
margin-bottom: 20px;
}
.imgText__txt p {
font-size: 18px;
font-weight: 300;
line-height: 1.5;
color: #666;
margin-bottom: 10px;
}
.imgText__txt ul {
font-size: 18px;
font-weight: 300;
line-height: 1.6;
}
.imgText__txt ul li {
position: relative;
padding-left: 20px;
}
.imgText__txt li {
color: #666;
}
.imgText__txt li::before {
content: '';
width: 5px;
height: 5px;
border-radius: 50%;
position: absolute;
left: 5px;
top: 9px;
background: #666;
}
.imgText__img {
border-radius: 10px;
position: relative;
}
.imgText__img a {
position: absolute;
left: 30px;
bottom: 30px;
background-color: #7c2b39;
color: #fff;
font-size: 18px;
padding: 10px 30px;
border-radius: 30px;
display: inline-block;
}
.imgText__img a.blue {
background-color: #2B387C;
}
.imgText__img.img1 {
background: url(img/imgText_bg01.jpg) no-repeat center; /* ๊ธฐ๋ณธ์ ์ผ๋ก ์ค์ ๋์ด ์๋ ๋ฐ๋ณต ์ฑ์์ ์์ ์ฃผ๊ณ ๊ฐ์ด๋ฐ ์ ๋ ฌ */
}
.imgText__img.img2 {
background: url(img/imgText_bg02.jpg) no-repeat center;
}
03. ๊ฒฐ๊ณผ๋ณด๊ธฐ
728x90
๋ฐ์ํ
'CSS > Layout_Site' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ฌ๋ผ์ด๋ ์ ํ (1) (2) | 2022.09.06 |
---|---|
ํค๋ ์ ํ (1) (2) | 2022.09.02 |
ํ ์คํธ ์ ํ (3) (2) | 2022.09.01 |
ํ ์คํธ ์ ํ (2) (2) | 2022.09.01 |
ํ ์คํธ ์ ํ (1) (2) | 2022.09.01 |
๋๊ธ