Use the place-content property to align the grid content to the end horizontally and to the center vertically.
Grid alignment: content
Change the code
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<title>Grid elements</title>
</head>
<body>
<div class="grid-container">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</body>
</html>
Completed 0 of 1
Align the grid content using the place-content property
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.