Write CSS code to align the grid item to the center along the inline axis and to the starting edge along the column axis using the place-self property.
Grid alignment: self
Align a grid item with place-self: second part
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 item--special"></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 item with "item--special' class to the center along the inline axis and to the start edge along the column axis
___
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.