In my portfolio under the portfolio section, I have smaller img that are displaying my logos illustrations etc. I also have a hover effect on them that was made with the pseudo-elements to save HTML code. The problem is that the content text and img are really big. Any tips on how I can fix this?
here is the code
[code]
.card {
cursor: pointer;
transition: all 200ms ease;
}
.card::before {
content: “CLICK ME!” url(“img/Clicked svg.svg”);
font-size: 1.3rem;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
font-weight: 800;
color: white;
opacity: 0;
transition: all 200ms ease;
}
.card:hover::before {
opacity: 1;
}