My problem is that in some screen resolutions the list items are not in the center of the div while the ul is centered.
Does anyone know a solution?
Thanks!
<ul class="news-grid">
<li></li>
<li></li>
</ul>
$(function() {
$('#buttons a').click(function(e) {
$.get( $(this).attr('href'), function(data) {
$('.news-grid').quicksand( $(data).find('li'), {adjustHeight: 'dynamic'} );
});
e.preventDefault();
});
});
.news-grid {
overflow: hidden;
margin: 0px;
padding-left: 0px;
width:100%;
line-height:1.4em;
}
.news-grid:after {
content: "";
display: block;
height: 0;
overflow: hidden;
clear: both;
}
.news-grid li {
display: block;
float: left;
width:217px;
text-align: left;
line-height: 17px;
color: #686f74;
height: 268px;
overflow: hidden;
background:url(../images/item_png8.png) no-repeat top left;
margin:0px 0px 20px 30px;
}