<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leftover Elements</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div class="wrapper">
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, autem.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore vel, eos ipsam.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam molestias officia maiores nobis. Natus, quis aspernatur!</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quis delectus cum cumque, unde deleniti quo.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi officia, aliquid delectus.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque nulla sint neque, dolorem reprehenderit assumenda!</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur elit. Itaque quibusdam, at magni?</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Unde commodi sit, adipisci et maxime vitae, blanditiis!</p>
<p class="paragraph">Lorem ipsum dolor sit amet, consectetur.</p>
</div>
</body>
</html>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
background: #923ACC;
}
.wrapper {
width: 90%;
margin: auto;
display: flex;
flex-wrap: wrap;
}
.paragraph {
flex: 1 1 calc(33.33% - 40px);
padding: 20px;
margin: 10px;
border-radius: 5px;
background: rgba(255,255,255,.3);
}
.paragraph:nth-child(4n+1) {
font-size: 24px;
}
.paragraph:nth-child(7n+1) {
font-size: 30px;
}