I need some "hint" on how to work on the pseudo element ::before
o content
(with image, a photo for example) and a background transparent
, all in the same class. A
Does anyone know how?
#minha_classe::before {
position: relative !important;
content: url(photo.jpg) !important;
height: auto;
top: 0%;
left: 0%;
margin-left: -50%; /* meio da imagem */
transform: translate(-50%, -50%);
background-color: rgba(165, 30, 30, 0.7) !important;
background-size: 100% 100%;
width: 1000px;
height: 1000px;
}