Hi,
I am trying to do something similar with portfolio images / blog images. This CSS works for keeping blog / portfolio images streching over 100% width. However it creates another problem: the portfolio image jumps to top of the page:
/* BLOG / PORTFOLIO IMAGES DON’T STRECH OVER 100% AND CENTER */
figure.media-wrap {
text-align: center;
}
figure.media-wrap img {
max-width:100%;
margin: 0 auto;
width:auto!important;
display: inline-block;
}
Tried to use this CSS to give the image a 100px top margin but it doesn’t work for me:
article.type-portfolio figure.media-wrap img {
margin-top: 100px;
}
Here is a sample portfolio item from my site: http://sometek.fi/portfolio/tiimilukio-verkkosivusto/