Curso de Frontend Developer

Toma las primeras clases gratis

COMPARTE ESTE ARTÍCULO Y MUESTRA LO QUE APRENDISTE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        html{
            font-size: 62.5%;
        }
        .contenedor{
            width: 100%;
            display: flex;
            justify-content: center;
        }
        .card{
            width: 700px;
            height: 700px;
            background-color: #d6dbdf;
            border-radius: 20px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 2px 4px 10px  #34495e ;
        }

        .card img {
            width: 100%; 
        }

        .texto {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .texto h1 {
            color:  #34495e ;
        }

    </style>
</head>
<body>
    <div class="contenedor">
        <div class="card">
            <img src="https://images.pexels.com/photos/811838/pexels-photo-811838.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1" alt="Guitarra">
            <div class="texto">
                <h1>¡Rock and Roll!</h1>
                <h3>Forever</h3>
            </div>
        </div>
    </div>
</body>
</html>

Curso de Frontend Developer

Toma las primeras clases gratis

COMPARTE ESTE ARTÍCULO Y MUESTRA LO QUE APRENDISTE

0 Comentarios

para escribir tu comentario

Artículos relacionados