সম্পাদনা
<!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>
পূর্বরূপ