๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
HTML + CSS ์‹œ๋ฆฌ์ฆˆ๐Ÿ•ธ/HTML & CSS ์‹œ๋ฆฌ์ฆˆ(V 1.0)

๋ฐฐ๋‹ฌ ๋ฉ”๋‰ด ์›น์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ | HTML&CSS ์‹œ๋ฆฌ์ฆˆ 021

by @ENFJ 2021. 7. 27.

 

html

  
<!DOCTYPE html>
<html>
<head>
<title>์ฝ”๋”ฉ์˜ ๋ฏผ์กฑ</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<h1>์ฝ”๋”ฉ์˜ ๋ฏผ์กฑ</h1>
<h2>๋„Œ ์ฝ”๋”ฉํ•  ๋•Œ๊ฐ€ ์ œ์ผ ์ด๋ป</h2>
<div class="food-container">
<div class="food">
<img src = "images/chicken.jpg" width="300" height="200">
<div class="info">
<h3>์–ผ ๋น ์ง„ ๋‹ญ</h3>
<p>์ฃผ๋จธ๋‹ˆ๊ฐ€ ๊ฐ€๋ฒผ์šด ๋‹น์‹ ์˜ ๋งˆ์Œ๊นŒ์ง€ ์ƒ๊ฐํ•œ ์ฐฉํ•œ ๊ฐ€๊ฒฉ!</p>
<a href="#">๋ฐ”๋กœ ๊ฒฐ์ œ</a>
</div>
</div>
<div class="food">
<img src = "images/sushi.jpg" width="300" height="200">
<div class="info">
<h3>์ฝ”์ฝ” ์Šค์‹œ</h3>
<p>์ฃผ๋จธ๋‹ˆ๊ฐ€ ๊ฐ€๋ฒผ์šด ๋‹น์‹ ์˜ ๋งˆ์Œ๊นŒ์ง€ ์ƒ๊ฐํ•œ ์ฐฉํ•œ ๊ฐ€๊ฒฉ!</p>
<a href="#">๋ฐ”๋กœ ๊ฒฐ์ œ</a>
</div>
</div>
<div class="food">
<img src = "images/burger.jpg" width="300" height="200">
<div class="info">
<h3>์ฝ”๋ฐ๋ฆฌ์•„</h3>
<p>์ฃผ๋จธ๋‹ˆ๊ฐ€ ๊ฐ€๋ฒผ์šด ๋‹น์‹ ์˜ ๋งˆ์Œ๊นŒ์ง€ ์ƒ๊ฐํ•œ ์ฐฉํ•œ ๊ฐ€๊ฒฉ!</p>
<a href="#">๋ฐ”๋กœ ๊ฒฐ์ œ</a>
</div>
</div>
<div class="food">
<img src = "images/bibimbap.jpg" width="300" height="200">
<div class="info">
<h3>์ฝ”๊ฐ€๋„ค</h3>
<p>์ฃผ๋จธ๋‹ˆ๊ฐ€ ๊ฐ€๋ฒผ์šด ๋‹น์‹ ์˜ ๋งˆ์Œ๊นŒ์ง€ ์ƒ๊ฐํ•œ ์ฐฉํ•œ ๊ฐ€๊ฒฉ!</p>
<a href="#">๋ฐ”๋กœ ๊ฒฐ์ œ</a>
</div>
</div>
</div>
</body>
</html>

 

 

css

  
@font-face {
src:url("../fonts/BMJUA_otf.otf");
font-family:jua;
}
* {
box-sizing: border-box;
}
body {
background-color:#f0e8d9;
}
h1 {
text-align: center;
font-size: 64px;
color: #58595b;
margin-top: 75px;
margin-bottom: 30px;
font-family: jua;
}
h2 {
text-align: center;
font-size: 32px;
color: #58595b;
margin-bottom: 75px;
font-family: jua;
}
.food-container {
width: 660px;
margin-left: auto;
margin-right: auto;
}
.food {
background-color: white;
width: 300px;
margin-left: auto;
margin-right: auto;
border-radius: 10px;
margin-bottom: 50px;
float: left;
margin-left: 15px;
margin-right: 15px;
}
.food img {
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
.food .info {
text-align: center;
padding: 20px;
}
.food h3{
color: #58595b;
font-size: 32px;
margin-top: 0px;
margin-bottom: 20px;
font-family: jua;
}
.food p {
color: #58595b;
font-size: 16px;
margin-top: 0px;
margin-bottom: 16px;
text-align: left;
font-family: jua;
}
.food a {
color: #0000ee;
font-size: 16px;
text-decoration: none;
font-family: jua;
}
๊ฒฐ๊ณผ