I have created an unordered list with my thumbnails tagged in it. Now (as Firebug tells me) the anchor tag is overlapping my thumbnails creating white stripes under my images. This is my code so far:
html:
<div class="wrapper">
<ul class="masonry">
<li class="item">
<a class=lightbox" href="1.jpeg">
<img alt="1.jpeg" src="thumb/1.jpeg">
</a>
</li>
</ul>
</div>
css:
.wrapper{
width:90%;
margin: auto;
padding: 20px;
}
.masonry {
column-count: 4;
-moz-column-count: 4;
column-gap: 0.5em;
-moz-column-gap: 0.5em;
-webkit-column-gap: 0.5em;
}
.item{
background: #eee;
display: inline-block;
width: 100%;
margin: 0 0 0.5em
box-sizing: border-box;
moz-box-sizing: border-box;
webkit-box-sizing: border-box;
}
.item a{
margin: 0;
}
.item img{
width: 100%;
margin: 0;
}
You can see the problem live on my homepage