Hi all,
I’m playing around with new HTML5 elements and styling. Not sure if that will make a difference in my question. Anyway, currently I have an image inside a <section> element (it’s aligned left so the text appears to it’s right), however the element is collapsing, and no matter what I try to fix it It’s causing a vertical scroll bar.
this is my code:
<section class="cont">
<figure>
<a href="" rel="prettyPhoto" title="Video"><img src="images/video/fp-vidthumb.jpg" alt="Video" align="left" /></a>
</figure>
<h3>Check It Out!</h3>
<h4>See Complete Facilities!</h4>
<p>Skating Treadmill with 8’ x 8’ Platform with Stickhandling Platform & Shooting Extension</p>
<p>Synthetic Ice Surface - Skating, Shooting, Stickhandling, Goalie Training</p>
<p>Artificial Turf for Agility Training</p>
<p>Full Set of Weights and cardio equipment</p>
<p class="testimonial">“Absolutely loved it!</p>
</section>
my css is as follows:
#main article section {
margin-bottom: 10px;
text-align: left;
display: block;
}
#main article section .cont img{
margin-right: 10px;
margin-bottom: 10px;
}
.cont {
margin-top: 10px;
}
I also notice that if I remove the align from the image itself then I once again get the additional scroll bar on the side as well.
Anyone have any thoughts. I’ve tried setting the overflow to different options with no luck.