Answer the question
In order to leave comments, you need to log in
How to make a transparent font on an opaque background?
How do I make the font show through the background of the page when hovering over a button?
.button{
white-space: nowrap;
margin: 8px;
border: 2px solid #ffffff;
padding: 9px;
color: #ffffff !important;
text-decoration: none;
background-color: rgba(0, 0, 0, 0);
}
a[class="button"]{
line-height: 48px !important;
}
.button:hover{
background-color: #ffffff;
color: rgba(0, 0, 0, 0) !important;
}
Answer the question
In order to leave comments, you need to log in
There is no html code example, as far as I understand, this is what you need.
.button{
background: url("http://lorempixel.com/200/100/nature/");
display: inline-block;
border-radius: 5px;
padding: 10px;
font-size: 24px;
font-weight: 700;
color: #fff;
text-decoration: none;
transition: all 0.3s ease-in-out;
}
.button:hover{
/*opacity: .2;*/
color: rgba(255, 255, 255, .2);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question