lunes, 22 de enero de 2024

CSS - ::before banner con background

Banner con background de color difuminado.


Acá el código que hay que agregar en CSS. Lo demás lo tienes que averiguar... Truco sencillo pero efectivo.

NOTA: Si lo haces bien, también puedes agregar un vídeo y encima un texto con background tenue...

CSS

header::before{
    width: 100%;
    height: 100%;
    content: "";
    background: rgba(0, 0, 0, 0.532);
    position: absolute;
    z-index: 1;
}

No hay comentarios:

Publicar un comentario