সিএসএস place-items
🌈সিএসএস place-items কি?
📋সিএসএস place-items হলো আইটেমগুলোর অবস্থানের বৈশিষ্ট্য নির্ধারণ করার পদ্ধতি।
⚒️সিএসএস place-items আইটেমগুলোর অবস্থানের বৈশিষ্ট্য নির্ধারণ করতে ব্যবহৃত হয়।
সিএসএস place-items আইটেমগুলোর অবস্থানের বৈশিষ্ট্য নির্ধারণ করার উদাহরণ।
css
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.container {
height: 180px;
width: 180px;
border: solid black 1px;
display: grid;
grid-template-columns: repeat(3, 50px);
grid-template-rows: repeat(2, 50px);
place-items: center;
}
.container > div {
height: 30px;
width: 30px;
background-color: coral;
}
</style>
</head>
<body>
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>