Don't shoot me, i'm reasonably noobish to coding so am after a little help...
In my main body container i've got a side bar and an article container with 6 wrappers containing 6 transitional images in a 3x2 format. Looks great in full screen but when resized the wrapper is keeping its height and not scaling. Tried a height auto but its just layering the wrappers one on top of the other and a height percentage isn't scaling either.
(Any help is appreciated, thanks. I'd post images but can't till i get a rep)
here's the CSS:
article {
width:70%;
float:left;
margin:auto;
}
.img_wrapper {
float:left;
position:relative;
height:auto;
width:30%;
margin:0 1%;
}
.img_wrapper img {
border:solid 2px #dbc3e8;
position:absolute;
width:100%;
height:auto;
-webkit-transition: opacity 1s ease-in-out;
-moz-transition: opacity 1s ease-in-out;
-o-transition: opacity 1s ease-in-out;
transition: opacity 1s ease-in-out;
}
.img_wrapper img.top:hover {
opacity:0;
}
And here's the HTML:
<article>
<div class="img_wrapper">
<a href="#"><img class="bottom" src="img/index/103a.jpg" alt="" /></a>
<a href="#"><img class="top" src="img/index/101a.jpg" alt="" /></a>
</div>
<div class="img_wrapper">
<a href="#"><img class="bottom" src="img/index/103a.jpg" alt="" /></a>
<a href="#"><img class="top" src="img/index/101a.jpg" alt="" /></a>
</div>
<div class="img_wrapper">
<a href="#"><img class="bottom" src="img/index/103a.jpg" alt="" /></a>
<a href="#"><img class="top" src="img/index/101a.jpg" alt="" /></a>
</div>
<div class="img_wrapper">
<a href="#"><img class="bottom" src="img/index/103a.jpg" alt="" /></a>
<a href="#"><img class="top" src="img/index/101a.jpg" alt="" /></a>
</div>
<div class="img_wrapper">
<a href="#"><img class="bottom" src="img/index/103a.jpg" alt="" /></a>
<a href="#"><img class="top" src="img/index/101a.jpg" alt="" /></a>
</div>
<div class="img_wrapper">
<a href="#"><img class="bottom" src="img/index/103a.jpg" alt="" /></a>
<a href="#"><img class="top" src="img/index/101a.jpg" alt="" /></a>
</div>
Thanks in advance