The Implicit Grid

Report a typo

In this task, you need to create an explicit grid. Define 3 explicit columns with a width of 100px. To achieve this, use the repeat() function with the grid-template-columns property.

Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Example</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="grid">
<div class="item">Item 1</div>
<div class="item">Item 2</div>
<div class="item">Item 3</div>
<div class="item">Item 4</div>
</div>
</body>
</html>
Completed 1 of 2
Define 3 explicit columns with a width of 100px
The code is valid
___

Create a free account to access the full topic