• 12-10-2016, 15:07:44
    #1
    Aşağıdaki kodlarla alt kategorileri listeletiyorum. Ancak listenin ilk sırası boş oluyor. Bu nasıl düzeltilebilir. Aşağıdaki görselde gösterdim boşluğu.

    <div class="subcategory"><div class="box topbrown poems-subcategory"><div class="header">
    <div class="title">Featured Subcategories</div>
    </div> 	
    <div class="contentsub">
    <ul class="poems-subcategorylist">
    <?php
        if (is_category()) {
        $this_category = get_category($cat);
        }
        ?>
        <?php
        if($this_category->category_parent)
        $this_category = wp_list_categories('orderby=id&show_count=0
        &title_li=&use_desc_for_title=1&child_of='.$this_category->category_parent.
        "&echo=0"); else
        $this_category = wp_list_categories('orderby=id&depth=1&show_count=0
        &title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID.
        "&echo=0");
        if ($this_category) { ?> 
    
    <li><?php echo $this_category; ?></li></ul>
    <?php } ?>
    </div> 
    </div> </div>

    .subcategory{width:670px;margin:0 auto}
    .poems-subcategorylist li{float:left;margin:0 0 0 2px;padding:0 0 2px 2px;width:205px}
    .box.topbrown .contentsub{background:#f2eee4;border-color:#decea5;box-shadow:0 2px 0 #f1ebdc;height:160px}.box.topbrown .contentsub a{color:#005d92;font-weight:normal}
    .box .contentsub{background:#e5f3f5;border:1px solid #88c9d6;border-radius:5px;box-shadow:0 2px 0 #d8edf2;padding:12px 14px 10px;zoom:1}
    Birde tablo yüksekliğini otomatik yapınca görüntü bozuluyor. Aşağıda anlattım. Bunu düzeltmek için de yardımcı olabilirseniz sevinirim.

  • 14-10-2016, 14:45:30
    #2
    çalışır halini görsek varsa?
  • 14-10-2016, 14:49:33
    #3
    akbalci adlı üyeden alıntı: mesajı görüntüle
    çalışır halini görsek varsa?
    http://www.poemsclub.com/birthday-poems
  • 15-10-2016, 01:24:48
    #4
    Php için verilen kodlar ilk li tagının neden boş geldiğini anlamak için yeterli değil gibi. Yüksekliğin çözümü içinse ul tagı içindeki son li tagından sonra <li style="clear:both;"></li> ekleyin.
  • 17-10-2016, 08:18:20
    #5
    işe yaramadı hocam, yine aynısı oldu.