Aprovecha el precio especial

Antes:$249

Currency
$209

Paga en 4 cuotas sin intereses

Paga en 4 cuotas sin intereses
Comienza ahora

Termina en:

01d

16h

30m

25s

1

Como hacer una Card de Seguidores con HTML y CSS

Modelo final:

Card-1.png

Crear un proyecto con etiquetas HTML:

<body><section><divclass="container"><divclass="img-circle"><imgsrc="https://images.pexels.com/photos/5331154/pexels-photo-5331154.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"alt=""> -->
            </div><h1>Alicia Woods</h1><h4><span> # </span>a.woods</h4><divclass="card-2"><p>2.4k Followings</p><p>4k Followers</p><p>600k Photos</p></div><divclass="card-3"><h2>Send e-mail</h2><h2>NY, USA</h2></div><divclass="card-4"><h3>Follow</h3></div></div></section></body>

Aquí está como darle estilos con CSS

<style>body{
            background-color: lightblue;
        }
        section{
            width: 100%;
            display: flex;
            justify-content:center; /*Centrar contenido*/align-items: center;/*Centrar items*/padding-top:200px;
            padding-bottom:200px ;
        }
        .container{
            background: linear-gradient(plum, papayawhip);/*Degradando el color de fondo*/width: 400px;
            height: 500px;
            border-radius: 30px;/*Agregar un borde circular*/box-shadow:4px5px40pxrgba(0, 0, 0, 0.2); /*Agregar sombra al contenedor*/
        }
        h1{
            color: rgb(112, 78, 78);
            text-align: center; /*Centrar textos*/font-weight: bold ;
            text-shadow: 1px0px1px darkslateblue; 
            margin-bottom: 0;
        }
         h4{
            color: rgb(179, 49, 179);
            text-align: center;
            margin-top: 0;
           
        }
        .img-circle{
            background-color: papayawhip;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            overflow: hidden;
            display: block;
            margin: 2rem auto;
            box-shadow:5px5px40pxrgba(0, 0, 0, 0.2); /*Agregar sombra al fondo de la imagen*/
        }
        .containerimg{
            width: 100%; /*que tome todo el tamaño del elemento padre .img-circle*/
        }
        span{
            color: rgb(116, 107, 248);
        }
        .card-2{
            width: 100%;
            height: 22%;
            background-color: white;
            opacity: 50%;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }
        .card-2p{
            text-align: center;
            color: black;
            font-size: large;
        }
         .card-3{
            width: 100%;
            height: 11%;
            background-color: rgb(62, 54, 71);
            opacity: 70%;
            display: flex;
            justify-content: space-around;
            align-items: center;
         
        }
        h2::before{
            content: "📩"; /*Incluir emoji*/
        }
        divh2:nth-child(2)::before { 
            content: "📍"; /*Incluir emoji*/
        }
        h2{
            color: white;
        }
        .card-4{
            width: 100%;
            height: 11%;
            display: flex;
            justify-content: space-around;
            align-items: center;        
        }
        h3{
            font-size: xx-large;
        
        }
    </style>

Código contiene comentarios que pueden ayudar a guiarse para las propiedades de CSS usadas y destacadas de este proyecto.

Escribe tu comentario
+ 2