I'm trying to make a link's background-image disappear and the letter inside appear when hovering.
The closest I got is like this:
.slectercontainer {
width: auto;
height: 150px;
margin-top: 10%;
display: flex;
text-align: center;
justify-content: space-around;
}
.slectercontainer a {
font-size: 25px;
display: block;
color: transparent;
width: 150px;
height: 150px;
}
.select1 {
width: 150px;
height: 150px;
border-radius: 50%;
transition: 0.5s;
background-image: "https://via.placeholder.com/150";
background-size: cover;
}
.select1:hover {
opacity: 0.3;
color: rgb(255, 255, 255);
}
<div class="selectercontainer">
<a href="select1.html">
<div class="select1">
select1
</div>
</a>
<a href="/select2.html">select2</a>
<a href="/select3.html">select3</a>
<a href="/select4.html">select4</a>
</div>
and try with different way , but still not work
.slectercontainer{
width: auto;
height: 150px;
margin-top:10%;
display: flex;
text-align:center;
justify-content:space-around;
}
.slectercontainer a{
margin-bottom: 19px;
font-size: 25px;
display: block;
color: transparent;
width: 150px;
height: 150px;
transition: 0.5s;
}
.slectercontainer a:hover{
color:rgb(255, 255, 255);
}
.select1{
width: 150px;
height: 150px;
border-radius: 50%;
transition: 0.5s;
}
.select1:hover{
opacity: 0.3;
color:rgb(255, 255, 255);
}
<div class="slectercontainer">
<a href="/select1.html">
<img src="image/select1.jpg" class="select1">
select1
</a>
<a href="/select2.html">select2</a>
<a href="/select3.html">select3</a>
<a href="/select4.html">select4</a>
I'm doing only this feature hold day , and still can't pull this off , appreciate the help