Card Columns - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Card Columns</title> <style> body { font-family: 'Arial', sans-serif; background-color: #f3f4f6; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 80%; } .card { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); text-align: center; } .card h2 { font-size: 24px; margin-bottom: 10px; } .card p { font-size: 16px; color: #555; } </style> </head> <body> <div class="container"> <div class="card"> <h2>Card 1</h2> <p>Clean and simple card design</p> </div> <div class="card"> <h2>Card 2</h2> <p>Perfect for displaying information</p> </div> <div class="card"> <h2>Card 3</h2> <p>Modern and elegant look</p> </div> </div> </body> </html>