SizinWeb adlı üyeden alıntı

nth-last-child(2) parametrelerii kullanarak son kısımdaki degerleri sıfırlıyabilirsiniz


Nth-child siz deyince aklıma geldi. Bari onunla nasıl yapılacağını da ekleyeyim. :p


.home #content_box {
margin: 0;
}

div#content_box article:nth-child(even) {
float: left;
clear: left;
}

div#content_box article:nth-child(odd) {
float: right;
clear: right;
}

.home div#content_box article {
width: 48%;
}


bilimokur kullanıp kullanmamak size kalmış tabi ki. :p

Bu arada buton şu şekilde de olabilir:



.home #load-posts {
width: 92.4%;
margin-left: 2.5%;
text-align: center;
background-color: #fff;
}

.home #load-posts a {
color: #ffffff;
background: #f44336;
padding: 10px;
width: 100%;
max-width: 30%;
display: block;
margin: 0 auto;
}