As I delve into the world of web development, I have taken up the challenge of replicating another website's layout to hone my skills. However, there is one aspect of this site that has me stumped =/
<div class="a">
<span>Teste</span>
<i>Teste Two</i>
</div>
html {
color:#fff;
}
.a {
width:200px;
height:200px;
background:#000;
text-align:center;
font-size:36px;
spanopacity:1;
transform:scale(1);
}
i {
top:50%;
left:50%;
position:absolute;
z-index:2;
}
I attempted to recreate it here, but unfortunately, it did not turn out as expected.
On this particular site, there are sections with boxes labeled "Get Involved" and various icons that change when hovered over.
I am puzzled by how they achieved this using pseudo-elements ::after and ::before.