I am trying to achieve following:
Add overlay color to Shortcode element in WP with centered Text.
When user hovers over this overlay color and text must be hidden.
I tried lots of variantsannd this one nearly works, but it’s not showing text:
#image-map-pro-2380 > div > div.imp-ui{
max-width: 100%;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
outline: none;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: #000;
color: #FFF;
z-index: 9999;
position: absolute;
opacity: 0.7;
content: "OUT OF STOCK";
}
Also another problem is that when using
:hover {
display:none;
}
overlay color starts blinking not hiding.
Any suggestions?
2
Answers
Try these
JAVASCRIPT
I don’t know, if this is what you want but let me show u this code it doesnt make the text disappear