4 ๊ธ ๋ณด์ - 1 ์์ 4 ๊น์ง (์ด 4 ์ค์์)
-
๊ธ์ด์ด๊ธ
-
2023๋ 6์ 17์ผ 20:53 #87364

๊น์นํ์ฐธ๊ฐ์1. ์๋ ์นด๋ ๋ฐ์ค๋ค์ ํ ํ๋ฉด์ ๋ค ๋ณด์ฌ์ง๊ฒ ํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผํ๋์ ใ ใ flex๋ฐ์ค ์ฃผ๊ณ width ์ ์ค๊ฒ ๊ฐ์๋ฐ.....(์๋ html๊ณผ css ๋จ๊ฒจ ๋๋ฆฌ๊ฒ ์ต๋๋ค.) 2. ๊ทธ๋ฆฌ๊ณ ์ฐจํธ๋ ๋ฐ์ํ์ฒ๋ผ ํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผํ๋์?
<html><div class="main_container"> <h2>Dashboard</h2> <div class="row"> <div class="col"> <div> <p>Earning(Monthly)</p> <p>$400,000</p> </div> <i class="fas fa-calendar"></i> </div> <div class="col"> <div> <p>Earning(Annual)</p> <p>$800,000</p> </div> <i class="fas fa-dollar-sign"></i> </div>
<div class="col"> <div> <p>Tasks</p> <p>13</p> </div> <i class="fas fa-tasks"></i> </div> <div class="col"> <div> <p>Requests</p> <p>26</p> </div> <i class="fas fa-comments"></i> </div> </div> </div> -------------------------------------------- <CSS>
.main_container { position: absolute; left: 70px; top: 100px; width: 100%; } .row { display: flex; justify-content: center; align-items: center; }.col { border: 0.5px solid black; border-radius: 5px; margin-left: 10px; width: 25%; display: flex; justify-content: space-between; align-content: center; padding: 10px; } .col i { font-size: 30px; color: rgb(126, 126, 126); line-height: 300%; text-align: center; margin-right: 20px; }.col p { font-size: 18px; line-height: 10px; margin-left: 10px; } .chart_container { position: absolute; background-color: rgb(214, 214, 214); top: 300px; left: 70px; width: 60%; box-shadow: 1px 1px 5px rgb(170, 170, 170); border: 0px; } .chart_box { background-color: white; border: 0px; }2023๋ 6์ 17์ผ 21:08 #87365
codingappleํค ๋ง์คํฐ์ผ๋จ main_container ๋ฐ์ค๋ position์ผ๋ก ๊ณต์ค์ ๋์ฐ์ง๋ง์๋ค ์ฐจํธ๋์
2023๋ 6์ 19์ผ 17:07 #87593
๊น์นํ์ฐธ๊ฐ์์์ position ์์ฑ์ ์ฌ์ฉํ์ง ๋ง๋ผ๋ ๋ง์์ด์์ฃ ? ๊ทธ๋ผ position์์ด ๋ฐ์ฌ๋ณด๋๋ฅผ ์ฌ์ด๋๋ฐ์ ์๊ฒน์น๊ฒ ๋ ํ๋ ค๋ฉด ๋ง์ง์ฃผ๋ ๋ฐฉ๋ฒ๋ฐ์ ์๋์?...
2023๋ 6์ 19์ผ 19:10 #87608
codingappleํค ๋ง์คํฐ๋ด ์ธ ์ด์ ์์ผ๋ฉด ์ฐ์ง๋ง์๋ค ํ๋๋น ๋ position์ฃผ๊ณ main-container๋ ์ผ์ชฝ๋ง์ง ์ฃผ๋ฉด ๋ ๋ฏ์
-
๊ธ์ด์ด๊ธ
4 ๊ธ ๋ณด์ - 1 ์์ 4 ๊น์ง (์ด 4 ์ค์์)
- ๋ต๋ณ์ ๋ก๊ทธ์ธ ํ ๊ฐ๋ฅํฉ๋๋ค.
