.grid-three-layout .post {
width: calc( 20% - 14px );
float: left;
}
.grid-three-layout .post:nth-of-type(4n-1), .grid-three-layout .post:nth-of-type(4n-2) { margin-right: 21px }
.grid-three-layout .post:nth-of-type(4n-2), .grid-three-layout .post:nth-of-type(4n-3) { margin-right: 21px }
.grid-three-layout .post:nth-of-type(4n-3), .grid-three-layout .post:nth-of-type(4n-4) { margin-right: 21px }
.grid-three-layout .clearfix:nth-of-type(4n-3), .grid-three-layout .clearfix:nth-of-type(4n-4) { display: none } Kafayı yemek üzereyim yardım eder msiniz?
4
●391
- 21-06-2019, 15:34:12Aşağıdaki kodlarla 4 tane yan yana div yapmak istiyorum. olmuyor hata nerde bu kodlarda?
- 21-06-2019, 15:44:46Aşağıda ki örnek kod inceleye bilir misiniz?
<style type="text/css"> .kolon { float:left; border:1px solid red; padding:10px; margin:10px; } </style> <div class="kolon">1 nolu div </div> <div class="kolon"> 2 nolu div </div> <div class="kolon"> 3 nolu div </div> <div class="kolon"> 4 nolu div </div> <div style='clear: both'/>
Kodlarda bir hata yok bu şekilde yan yana gelir başka bir css kodu ile çakışıyor olmasın sizin ki ?