I have div which includes:
<div class="field-content">
 <a href="http://url.com">
  <img width="320" height="194" src="http://img.jpg"></img>
  <div class="tile_content">
   <div class="tile_title">content</div>
   <div class="tile_body">content</div>
  </div>
 </a>
</div>
In some cases this field-content has not img-tag at all. Then I want tile_content to be vertically centered to field-content. When img-tag exists then image is positioned at top of field-content and tile_content is under image.
 This demonstrates those two situations. In first one there is image and under image tile_content. In second one there is only tile_content - no img at all.
This demonstrates those two situations. In first one there is image and under image tile_content. In second one there is only tile_content - no img at all.
Any ideas/tips how to make this work?
My CSS:
.field-content {
margin: 0px 0px 15px;
height: 365px;
width: 320px;
display: block;
overflow: hidden;
float: left;
background-color: #FFF;
.tile_content {
}
 
     
     
    