• 08-06-2013, 23:39:10
    #1
    yazarlar bölümü diken bunu yatay olarak sıralamak istiyorum echo ile yapmayı denedim ama bir türlü beceremedim.

    Bilgisi olan bir arkadaş yardımcı olursa sevinirim.

    Teşekkürler.


    <!-- authors: begin -->
      <div class="authors">
        <div class="authors-title">YAZARLAR</div>
    	
    	<?php
    		$db->query("SELECT user_status FROM users WHERE user_status='editor'");
    	?>
    	
    	<div<?php if($db->num_rows >= 4) {?> id="authors-box-layout"<?php } ?>> 
    	
    	<?php foreach($db->get_results("SELECT id,user_name_lastname,user_avatar FROM users WHERE user_status='editor'") as $editor){ 
    		$editor_news = $db->get_row("SELECT id,news_title,sef FROM news WHERE user_id='$editor->id' ORDER BY id DESC");
    	?>
    	
        <div class="authors-box">
    	  <h3><a title="<?=$editor_news->news_title?>" href="<?=sefurl($editor_news->sef,$editor_news->id)?>"></h3>
    	  <div class="authors-img"><img alt="<?=$editor->news_title?>" height="71" width="79" src="upload/users/<?=$editor->user_avatar?>"></div>
    	  <div class="authors-text">
    	    <div class="authors-news-title"><?=$editor->user_name_lastname?></div>
    		<div class="authors-news-content"><?=$editor_news->news_title?></div>
    	  </div>
    	  </a>
    	</div>
    	
    	<?php } ?>
    	
    	
    
    	</div>
    	
      <div class="authors-arrow">
        <div id="authors-arrow-prev"></div>
    	<div id="authors-arrow-next"></div>
      </div>  
    	</div>
    <!-- authors: end -->
  • 08-06-2013, 23:44:23
    #2
    authors-box div'inin css koduna
    Alıntı
    float:left;
    yazar mısın?
  • 08-06-2013, 23:57:59
    #3
    dediğiniz şekil de yaptım lakin olmadı.

    Kod bu şekil

    Alıntı
    /*** authors: begin ***/
    .authors{background-image:url("../img/authors.png"); width:300px; height:391px; padding:10px; margin-top:10px;}
    .authors-title{font-size:15px; color:#999; height:25px; margin-top:7px;}
    .authors-box{background-image:url("../img/authors-box.png"); width:270px !important; height:71px; margin-bottom:10px !important; }
    .authors-box:hover{background-image:url("../img/authors-box-hover.png"); width:270px; height:71px; }
    .authors-img{float:left; width:80px;}
    .authors-text{float:left; width:170px; height:50px; padding:10px;}
    .authors-news-title{color:#bf0000; font-size:14px;}
    .authors-news-content{ color:#666; line-height:15px; padding-top:5px;}
    .authors-news-content a{ color:#666; text-decoration:none;}
    .authors-news-content a:hover{ color:#000; text-decoration:none;}
    .authors-arrow{text-align:right; width:70px; margin-top:15px; overflow:hidden; padding-left:200px;}
    #authors-arrow-prev{float:left; }
    #authors-arrow-next{float:left; width:30px;}
    /*** authors: end ***/
  • 09-06-2013, 00:02:44
    #4
    Üyeliği durduruldu
    .authors-box:hover{background-image:url("../img/authors-box-hover.png"); width:270px; height:71px; }
    kısmını

    .authors-box:hover{background-image:url("../img/authors-box-hover.png"); width:270px; height:71px;float:left }

    olarak değiştir. ayrıca bu konu css konusu php değil
  • 09-06-2013, 00:08:54
    #5
    hocam çok değişken şeyler olabilir bu yanyana sıralamak için. demo varsa pmden yada burdan atın öyle bakayım. benim aklıma şuan için başka bişey gelmiyor.
  • 09-06-2013, 00:10:26
    #6
    Üyeliği durduruldu
    tayfuncetin adlı üyeden alıntı: mesajı görüntüle
    hocam çok değişken şeyler olabilir bu yanyana sıralamak için. demo varsa pmden yada burdan atın öyle bakayım. benim aklıma şuan için başka bişey gelmiyor.
    float:left alakasız yere yazılmış
  • 09-06-2013, 00:13:19
    #7
    teşekkür ederim zahmet verdim size ama oldu

    bir kez daha teşekkürler..

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 23:13:19 -->-> Daha önceki mesaj 23:12:41 --

    biraz bozuk görünüyor ama css ile oynarsam düzelir sanırım.
  • 09-06-2013, 00:17:55
    #8
    kolay gelsin. düzeltmene sevindim.
  • 09-06-2013, 00:18:56
    #9
    düzeldi de bayagı bir sorun çıkacak eger mümkünse özelden görüşebilir miyiz gerekirse ücretini ödeyeyim sorunumun çözümü gerek çünkü