![2fr 1fr 2fr 1fr.png](https://velog.velcdn.com/post-images%2Fqkrcndtlr123%2Fa2094260-3ce3-11ea-97bd-ab6a6da50eba%2F2fr-1fr-2fr-1fr.png)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>CSS Grid</title>
<style>
.father {
display: grid;
grid-auto-rows: 200px;
grid-gap: 5px;
grid-template-columns: 2fr 1fr 2fr 1fr;
}
.first {
background-color: #f1c40f;
}
.second {
background-color: #27ae60;
}
.third {
background-color: #3498db;
}
.fourth {
background-color: #d35400;
}
</style>
</head>
<body>
<div class="father">
<div class="first"></div>
<div class="second"></div>
<div class="third"></div>
<div class="fourth"></div>
</div>
</body>
</html>
![repeat 3 1fr .png](https://velog.velcdn.com/post-images%2Fqkrcndtlr123%2Fac2484f0-3cf5-11ea-9683-993e0dc87733%2Frepeat-3-1fr-.png)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>CSS Grid</title>
<style>
.father {
display: grid;
grid-auto-rows: 200px;
grid-gap: 5px;
grid-template-columns: repeat(3, 1fr);
}
.first {
background-color: #f1c40f;
}
.second {
background-color: #27ae60;
}
.third {
background-color: #3498db;
}
.fourth {
background-color: #d35400;
}
</style>
</head>
<body>
<div class="father">
<div class="first"></div>
<div class="second"></div>
<div class="third"></div>
<div class="fourth"></div>
</div>
</body>
</html>
![repeat 5 1fr.png](https://velog.velcdn.com/post-images%2Fqkrcndtlr123%2Fc77aa860-3cf5-11ea-aed7-bf7796d2fd0a%2Frepeat-5-1fr.png)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>CSS Grid</title>
<style>
.father {
display: grid;
grid-auto-rows: 200px;
grid-gap: 5px;
grid-template-columns: repeat(5, 1fr);
}
.first {
background-color: #f1c40f;
}
.second {
background-color: #27ae60;
}
.third {
background-color: #3498db;
}
.fourth {
background-color: #d35400;
}
</style>
</head>
<body>
<div class="father">
<div class="first"></div>
<div class="second"></div>
<div class="third"></div>
<div class="fourth"></div>
</div>
</body>
</html>
![repeat 3 1fr 4fr.png](https://velog.velcdn.com/post-images%2Fqkrcndtlr123%2F97888770-3cf6-11ea-ada5-7f693c0b581e%2Frepeat-3-1fr-4fr.png)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>CSS Grid</title>
<style>
.father {
display: grid;
grid-auto-rows: 200px;
grid-gap: 5px;
grid-template-columns: repeat(3, 1fr) 4fr;
}
.first {
background-color: #f1c40f;
}
.second {
background-color: #27ae60;
}
.third {
background-color: #3498db;
}
.fourth {
background-color: #d35400;
}
</style>
</head>
<body>
<div class="father">
<div class="first"></div>
<div class="second"></div>
<div class="third"></div>
<div class="fourth"></div>
</div>
</body>
</html>