I want text to be hidden at top of image when i hover it should be visible.
Normally image looks like this without hover with text above it.
But instead i wont text to be shown on top of image when it hover like following
So basically text shown here and div shown here in image above should be hidden initially and when hover is done show those elements.
Something similar to this
code i tried doesnt work
html:
<div class="imgcontainer">
<span class="hideme">Image text</span>
<img class="img-responsive" id="thumbnail" src="source of image">
</div>
css:
.scaleout {
transform: scale(1, 0.80);
-ms-transform: scale(1, 0.80);
-webkit-transform: scale(1, 0.80);
}
.hideme {
color: black;
top: inherit;
z-index: -1;
text-align: center;
vertical-align: middle;
position: relative;
}
please help

