whatisthis?
Project. ๋ฐ์ํ ํ์ด์ง - (3) Service Section ๋ณธ๋ฌธ
(3) Service Section
๐ HTML + CSS ์์ฑ
- html ๋งํฌ์ ๊ตฌ์ฑ
์ด๋ฒ์๋ desktop์์ (>=768px) col-6์ด ๋๊ฐ๊ฐ ๋๋ฏ๋ก
col-12 ๋๊ฐ๋ฅผ ๋ง๋ค์ด์ผํ๋ค.
[๊ตฌ์กฐ] container > row > col-12 * 2
์ฌ๊ธฐ์, col-12 ๋ ๋๋ค col-md-6์ด๋ผ๋ ์์ฑ์ ๊ฐ์ ธ์ผ ํ๋ค.
๐ป bootStrap Breakpoint๋ฅผ ๋ณด๋ฉด md = medium = 768์ด์.
<div class="container">
<div class="row">
<div class="col-12 col-md-6">
<h2>Master the Fundamentals while Exploring new Tech</h2>
<p>
We teach cutting-edge tech Full Stack Javascript as well as
Computer Science fundamentals.
</p>
</div>
<div class="col-12 col-md-6">
<h2>Develop Production Level Web Applications</h2>
<p>
You put your knowledge into action with carefully designed
assignments and personal software engineering projects.
</p>
</div>
</div>
</div>
- ๋ด๊ฐ ์ง์ ์ฝ๋ฉํด๋ณธ ๊ฒ ๐ป
index.html
<!-- ์๋ต -->
<section class="service">
<div class="container">
<div class="row">
<div class="col-12 col-md-6">
<h2 class="service-title">
Master the Fundamentals while Exploring new Tech
</h2>
<p class="service-desc">
We teach cutting-edge tech Full Stack Javascript as well as
Computer Science fundamentals.
</p>
</div>
<div class="col-12 col-md-6">
<h2 class="service-title">
Develop Production Level Web Applications
</h2>
<p class="service-desc">
You put your knowledge into action with carefully designed
assignments and personal software engineering projects.
</p>
</div>
</div>
</div>
</section>
style.css
/* Service */
.service {
padding: 80px 0px;
background-color: #f4f5f7;
}
.service-title {
font-size: 22px;
line-height: 1.36363636;
letter-spacing: -0.04em;
color: #2b292d;
margin-bottom: 16px;
}
.service .col-12:first-child {
margin-bottom: 40px;
}
/* >= 768px (Desktop) */
@media screen and (min-width: 768px) {
/* ๐บ ์ดํ ์๋ต */
/* Service */
.service-title {
font-size: 26px;
line-height: 1.30769231;
}
.service .col-12:first-child {
margin-bottom: 0;
}
}
์ฒ์์ ์ฌ๊ธฐ margin-bottom์ ์ค ๋,
service-desc ์์ฒด์ margin-bottom:40px์ ํด์คฌ๋๋ฐ,
์๋ฌด๋๋ ์ด๊ฒ์
col-12์ col-12๊ฐ์ margin์ ์ฃผ๋ ๊ฒ ์ด๋ฏ๋ก
col-12 ์์ฒด์ (์ฒซ๋ฒ์งธ ๊ฑฐ) ์คํ์ผ์ ์ฃผ์.
.service .col-12:first-child {
margin-bottom: 40px;
}
โโ ์ฃผ์
container, row, col ๋ฑ์ ์ ๋๋ก!
margin/padding(์ข์ฐ)๋ width, height๋ฅผ ์ค์ ์๋๋ค.
์ํ margin, padding์ ๊ด์ฐฎ์.
์์ฑ.
๐ป Design File
๐ปReference Lecture
'PROJECT > WEB' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Project. ๋ฐ์ํ ํ์ด์ง - (4) Program Section โก (0) | 2022.03.02 |
---|---|
Project. ๋ฐ์ํ ํ์ด์ง - (4) Program Section (0) | 2022.03.02 |
Project. ๋ฐ์ํ ํ์ด์ง - (2) landing page (0) | 2022.03.02 |
Project. ๋ฐ์ํ ํ์ด์ง - (1) ํ๊ฒฝ setting (0) | 2022.03.02 |
LX Z:IN Interior Sheets Project ๋์์ธ draft (2/24๊ธฐ์ค) (0) | 2022.02.24 |