Hi Patrick,
Thank you for your reply, It didnt work for my template for some reason but i end up adding the container and size. it is not ideal but it works.
<article id="article[[*id]]" class="article">
<h1>[[*pagetitle]] <small class="metadata">posted: [[*publishedon]]</small></h1>
<div id="artcontainer1" class="artcontainer">
[[*image]]</div>
#artcontainer1{
width: 100%;
max-height: 250px;
}
.artcontainer{
position: relative;
overflow: hidden;
width: 100%; /* default pan container width */
height: 250px; /* default pan container height */
margin-bottom: 20px;
}
.artcontainer img{
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
Thanks
Mags