I have the following code
.topic {
float: left;
width: 500px;
}
.topic .tInfo {
float: left;
width: 460px;
}
.topic .tName {
width: 460px;
}
.topic .tTime {
width: 460px;
}
.topic .tUImgLnk {
width: 400px;
height: 400px;
float: left;
background-color: red;
}
.topic .tUImgLnk .tUImg {
margin: 0px auto;
display: block;
vertical-align: middle;
}
<div class="topic" data-reactid=".yvg4g1tbeo.0.$1">
<div class="tUImgLnk" data-reactid=".yvg4g1tbeo.0.$1.0">
<a title="test" target="_blank" href="http://www.test.net" data-reactid=".yvg4g1tbeo.0.$1.0.0">
<img class="tUImg" src="http://www.easyvectors.com/assets/images/vectors/vmvectors/dekstop-computer-vector-26.jpg" data-reactid=".yvg4g1tbeo.0.$1.0.0.0">
</a>
</div>
</div>
How do I get it vertical middle? I have tried to set the container to vertical-align:middle
but that does not help.