Esta es mi solución:
en el HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="stilo.css">
<title>Gril</title>
</head>
<body>
<div class="grid">
<div class="box">Ruby on Rails</div>
<div class="box">Java</div>
<div class="box">HTML</div>
<div class="box">Python</div>
<div class="box">Wordpress</div>
<div class="box">Bootstrap</div>
<div class="box">Java Web</div>
<div class="box">MySQL</div>
</div>
</body>
</html>
Y este es mi stilo.css:
.grid {
align-items: center;
width: 450px;
height: 200px;
justify-content: space-between;
display: flex;
flex-wrap: wrap;
margin-left: 10%;
}
.box {
height: 25px;
width: 100px;
background-color: green;
text-align: center;
color: aliceblue;
}