728x90
๋ ์ด์์ : ์ด๋ฏธ์ง ํ ์คํธ ์ ํ01
๋ค์๊ณผ ๊ฐ์ ์ด๋ฏธ์ง์ ํ ์คํธ๊ฐ ํผํฉ๋ ์ ํ์ ๋ ์ด์์์ ์์ ํด ๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
HTML ์์ค
๋จผ์ , container ๋ฐ์ค ์์ ํ ์คํธ์ ์ฒซ๋ฒ์งธ ์ด๋ฏธ์ง, ๋๋ฒ์งธ ์ด๋ฏธ์ง๋ฅผ ์ฝ์ ํ div ๋ฐ์ค๋ฅผ 3๊ฐ ๋ง๋ค์ด ์ฃผ์์ต๋๋ค. ํ ์คํธ ๋ฐ์ค์๋ ์ ๋ชฉ, ์ค๋ช , ๋ด์ฉ ๋ชฉ๋ก์ ์์ฑํด ์ฃผ์๊ณ , ์ด๋ฏธ์ง ๋ฐ์ค์๋ ์ด๋ฏธ์ง์ ๋งํฌ๋ฅผ ์์ ํด ์ฃผ์์ต๋๋ค.
<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 class="blue" href="#">ํํ ๋ฆฌ์ผ ์ฌ์ดํธ</a>
</div>
</div>
</section>
CSS ์์ค
์ธ ๊ฐ์ div ๋ฐ์ค๋ flex์ space-between์ ์ด์ฉํด ๋ ์ด์์ ์์ ์ ํด ์ฃผ์์ต๋๋ค. ์ด๋ฏธ์ง๋ ๋ฐฑ๊ทธ๋ผ์ด๋ ํ์์ผ๋ก ์ฝ์ ํด ์ฃผ์์ต๋๋ค.
/* 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;
}
.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 ul li a {
color: #666;
}
.imgText__txt ul li::before {
content: '';
width: 5px;
height: 5px;
border-radius: 50%;
position: absolute;
left: 5px;
top: 9px;
background-color: #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/imgText01_bg01.jpg) no-repeat center / cover;
}
.imgText__img.img2 {
background: url(img/imgText01_bg02.jpg) no-repeat center / cover;
}
๊ฒฐ๊ณผ
728x90
'WebSite' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ๋ฐฐ๋ ์ ํ ๋ ์ด์์01 (5) | 2022.09.05 |
---|---|
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ์ฌ๋ผ์ด๋ ์ ํ ๋ ์ด์์01 (4) | 2022.09.05 |
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ํค๋ ์ ํ ๋ ์ด์์01 (7) | 2022.09.01 |
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ํ ์คํธ ์ ํ ๋ ์ด์์03 (3) | 2022.09.01 |
์น์ฌ์ดํธ ๋ง๋ค๊ธฐ : ํ ์คํธ ์ ํ ๋ ์ด์์02 (5) | 2022.08.31 |
๋๊ธ