I have list of news items with image, title and date. I want to scale image which I'm able to but it hides the span which has title.
I fixed this issue for Firefox by using -moz-transform-style: preserve-3d;
but in other browsers I'm not able to find CSS property which can work with other browsers like IE, Chrome, Safari etc.
.list-w li {
overflow:hidden;
display: block;
float: left;
margin-bottom: 20px;
margin-right: 15px;
width: 315px;
}
.list-w li img:hover {
border: 0 none;
float: left;
margin: 0;
width: 315px !important;
transform: scale(1.05);
z-index:10;
}
.title-span {
-moz-transform-style: preserve-3d;
z-index:100;
color: #000;
display: inline-block;
float: left;
font-size: 11px;
font-weight: bold;
height: 14px;
margin: -24px 0 0;
overflow: hidden;
padding: 5px;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
width: 305px;
}
HTML
<div class="list-w">
<ul>
<li>
<a style="text-decoration:none; border:0; display:block;" href="/en/" id="hylTopFour2_0">
<img src=" http://placehold.it/350x150">
<span class="title-span">This is the title of the news</span>
</a>
</li>
</ul>
</div>