HTML&CSS๋ฅผ ํ์ฉํ์ฌ CGV ์ํ ์์ ๋ชฉ๋ก ๋ง๋ค๊ธฐ
โญ๏ธ float๋ฅผ ์ฌ์ฉํ์ง ์์๋, align-items๊ณผ position์ ์ฌ์ฉํ์ฌ ๊ฐ๋จํ๊ฒ ๋ฐฐ์นํ ์ ์๋ค.
<๋ง๋ค๊ณ ์ ํ๋ ๋์์ธ>
์ํ ๊ทธ ์ด์์ ๊ฐ๋. CGV
www.cgv.co.kr
<์์ฑ๋ณธโ๏ธ>
์๋งค ์ ๋ณด๊ฐ ๋ฐ๊ผ๊ตฐ..
<์ค๋ช >
์ํ ํฌ์คํฐ ๋ชจ์๋ฆฌ ๋ฅ๊ธ๊ฒํ๊ธฐ(์ด๋ฏธ์ง ๋ชจ์๋ฆฌ ๋ฅ๊ธ๊ฒ ๋ฃ๊ธฐ)
์ํ ํฌ์คํฐ ์์ ์์ฒญ ์ฐ๋ น ์ด๋ฏธ์ง (์ด๋ฏธ์ง ์์ ์ด๋ฏธ์ง ๋ฃ๊ธฐ)
์ํ ํฌ์คํฐ ์์ ์ํ ์์(์ด๋ฏธ์ง ์์ ๊ธ์จ ๋ฃ๊ธฐ)
<div class="box">
<img src="movie1.jpg" style="border-radius: 20px;"> <!-- ์ํ ํฌ์คํฐ ์ด๋ฏธ์ง -->
<div class="age"> <!-- ์ด์ฉ ์ฐ๋ น ์ ํ ์ด๋ฏธ์ง -->
<img src="all.png" style="width: 30px; height: 30px">
</div>
<div class="rank"> <!-- ์ํ ์์ ํ
์คํธ -->
<i>1</i> <!-- ์ดํ
๋ฆญ์ฒด -->
</div>
<p>๊ณต์กฐ2-์ธํฐ๋ด์
๋ </p> <!-- ์ํ ์ ๋ชฉ -->
<p style="color: gray; font-size: 19px;">
<img src="grade.png"
style="width: 30px; height: 28px; position: relative;
top: 5px; left: 3%; margin-right: 2px">
95% | ์๋งค์จ 38.5%
</p> <!-- ์ํ ์๋งค, ํ์ ์ ๋ณด -->
</div>
์ ์ฒด ์ฝ๋
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
font-family: ๋ง์ ๊ณ ๋, ๊ตด๋ฆผ;
font-size: 14px;
background: #eee;
}
main {
padding-top: 200px;
min-height: 1500px;
padding-left: 40px;
font-size: 25px;
display: flex;
align-items: center;
}
main ul {
display: flex;
align-items: center;
}
footer {
height: 50px;
line-height: 50px;
text-align: center;
}
.box {
width: 200px;
height: 450px;
margin: 30px;
align-items: center;
align-items: center;
position: relative;
text-align: center;
}
img {
width: 200px;
height: 350px;
}
.rank {
position: absolute;
color: white;
font-size: 100px;
font-weight: 700;
top: 59%;
left: 5%;
color: white;
}
.age {
position: absolute;
top: 2%;
left: 80%;
}
</style>
</head>
<body>
<main>
<div class="box">
<img src="movie1.jpg" style="border-radius: 20px;">
<div class="age">
<img src="all.png" style="width: 30px; height: 30px">
</div>
<div class="rank">
<i>1</i>
</div>
<p>๊ณต์กฐ2-์ธํฐ๋ด์
๋ </p>
<p style="color: gray; font-size: 19px;">
<img src="grade.png"
style="width: 30px; height: 28px; position: relative; top: 5px; left: 3%; margin-right: 2px">
95% | ์๋งค์จ 38.5%
</p>
</div>
<div class="box">
<img src="movie2.jpg" style="border-radius: 20px;">
<div class="age">
<img src="all.png" style="width: 30px; height: 30px">
</div>
<div class="rank">
<i>2</i>
</div>
<p>๋๋์ฌ๋ฅ</p>
<p style="color: gray; font-size: 20px;">
<img src="grade.png"
style="width: 30px; height: 28px; position: relative; top: 5px; left: 3%; margin-right: 2px">
99% | ์๋งค์จ 11.1%
</p>
</div>
<div class="box">
<img src="movie3.jpg" style="border-radius: 20px;">
<div class="age">
<img src="all.png" style="width: 30px; height: 30px">
</div>
<div class="rank">
<i>3</i>
</div>
<p>์๋ผ๋</p>
<p style="color: gray; font-size: 20px;">
<img src="grade.png"
style="width: 30px; height: 28px; position: relative; top: 5px; left: 3%; margin-right: 2px">98%
| ์๋งค์จ 6.5%
</p>
</div>
<div class="box">
<img src="movie4.jpg" style="border-radius: 20px;">
<div class="age">
<img src="all.png" style="width: 30px; height: 30px">
</div>
<div class="rank">
<i>4</i>
</div>
<p>ํ๊ฑด-๋งค๋ฒ๋ฆญ</p>
<p style="color: gray; font-size: 20px;">
<img src="grade.png"
style="width: 30px; height: 28px; position: relative; top: 5px; left: 3%; margin-right: 2px">99%
| ์๋งค์จ 5.8%
</p>
</div>
<div class="box">
<img src="movie5.jpg" style="border-radius: 20px;">
<div class="age">
<img src="all.png" style="width: 30px; height: 30px">
</div>
<div class="rank">
<i>5</i>
</div>
<p>์๋งจํฑ</p>
<p style="color: gray; font-size: 20px;">
<img src="grade.png"
style="width: 30px; height: 28px; position: relative; top: 5px; left: 3%; margin-right: 2px">96%
| ์๋งค์จ 4.5%
</p>
</div>
</main>
</body>
</html>
'๐ปProgramming > ๐จ ์ค์ต' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[HTML&CSS] Grid - CGV ์ํ ์ด๋ฒคํธ ์ ๋ณด ๋ง๋ค๊ธฐ๐ (0) | 2022.09.15 |
---|---|
[HTML] 04. ํ ์ด๋ธ ํ๊ทธ ์ค์ต (0) | 2022.09.13 |
[HTML&CSS] ํ ์ด๋ธ ํ๊ทธ ์ค์ต - ์ด๋ ฅ์ ๋ง๋ค๊ธฐ!๐ (0) | 2022.09.10 |