CSS6

 <!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        padding: 0;
        margin: 0;
    }

    body {
        background-color: #f0f0f0;
    }

    .contenido1 {
        padding-top: 10px;
        border: 1px solid red;
        display: flex;
        justify-content: center;

    }

    .card {
        border: 5px solid green;
        background-color: white;
        display: flex;
        flex-direction: column;
 
        border-radius: 8px;

    }

    .card-header {
        background-color: #f8f9fa;

           border-bottom: 1px solid #dee2e6;
    }

     .card-header h1{
        text-align: center;
    }
    .card-body{
            padding: 20px 20px 0 20px;
    }
    .card-body p{
        text-align: center;
    }
    .card-body h2{
        text-align: center;
    }
    .card-footer{
             padding: 20px 20px 0 20px;
    }
    table {
    margin: 0 auto; /* La tabla necesita esto además */
                       /* Que ocupe todo el ancho */
}
   
    /* ===== MENÚ SUPERIOR ===== */
.menu {
    background-color: #333;      /* Fondo oscuro */
    padding: 15px;               /* Espacio interno */
    text-align: center;          /* Centrar el texto */
}

.menu a {
    color: white;                /* Texto blanco */
    text-decoration: none;       /* Quitar subrayado */
    margin: 0 15px;              /* Espacio entre links */
    font-size: 18px;             /* Tamaño de letra */
}

.menu a:hover {
    text-decoration: underline;  /* Subrayado al pasar el mouse */
}
</style>

<body>
          <div class="menu">
            <a href="#">Inicio</a>
            <a href="#">Productos</a>
            <a href="#">Ventas</a>
            <a href="#">Reportes</a>
        </div>
    <div class="contenido1">
     
        <div class="card">
            <div class="card-header">
                <h1>Sotelo</h1>
            </div>
            <div class="card-body">
            <table border="1">

                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Descripción</th>
                        <th>Sección</th>
                        <th>Gross</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>desenzilador das</td>
                        <td>henanienas</td>
                        <td>32.00</td>
                    </tr>
                </tbody>
            </table>

            </div>
            <div class="card-footer">
                3
            </div>
        </div>
    </div>
</body>

</html>

Comentarios

Entradas más populares de este blog

Tutorial de CSS: De Cero a Estilizar tu Primera Página Web

layouts

Proyecto Práctico: Tarjeta de Perfil