Hi there,
I have a HTML / CSS site that is pretty much completed. Except for one bit where I want the image to enlarge when hovered over. This isn’t my problem though, when it enlarges I want it to be in the exact centre of the screen (So that it is readable).
I’m using 5grid css, but other than that it’s pretty standard panel formatting.
Any ideas?
<article id=”work” class=”panel”>
<header>
<h2>Blurb</h2>
</header>
Blurb.
<section class="5grid is-gallery">
<div>
<div> <a href="images/1.jpg"><img src="images/1.jpg" alt="" /></a> </div>
<div> <a href="images/2.jpg"><img src="images/2.jpg" alt="" /></a> </div>
<div> <a href="images/3.jpg"><img src="images/3.jpg" alt="" /></a> </div>
</div>
</section>
</article>
CSS style
.image-full
{
display: block;
width: 100%;
margin: 0 0 2em 0;
}