Menu
Coddy logo textTech

Diseño de tarjetas en Grid

Parte de la sección CSS Mastery del Journey de HTML de Coddy. Lección 42 de 43.

challenge icon

Desafío

Fácil

Crea un diseño simple de 2 columnas para las tarjetas usando CSS Grid.

  1. Las tarjetas deben mostrarse en dos columnas iguales.
  2. Debe haber algo de espacio entre las tarjetas.

Pruébalo tú mismo

<html>
<head>
  <title>Grid Card Layout</title>
  <style> 
    
    .card {
      background-color: #0252c9;
      padding: 16px;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
        /* Add your styles here */
        
  </style>
</head>
<body>
    <div class="card-container">
      <div class="card">
        <h3>Card 1</h3>
        <p>This is the first card with some text.</p>
      </div>
      <div class="card">
        <h3>Card 2</h3>
        <p>This is the second card with more content.</p>
      </div>
    </div>
</body>
</html>

Todas las lecciones de CSS Mastery

Practica por tu cuenta: Playground de Web