Merhaba arkadaşlar kişiler mobilden girdiğinde menü kötü görünüyorr 2. görseldeki gibi nasıl yapabilirim css de tam oturtamadım sistemi kodları aşağıda veriyorum. ya da o şekile gelecek css html dosyasını verebilecek varsa çok sevinirim ben editleyip yerleştiririm



bunu



    <ul class="nav navbar-nav sidebar-nav visible-xs-block" style="">                <!-- Hot fixes -->                    <li class="dropdown">                                              </li>                    <!-- Hot fixes -->                <?php  $categorypriority = Myclass::getCategoryPriority();?>
                        <?php foreach($categorypriority as $key => $category):                            if($category != "empty"){                                //$getcaname =  Myclass::getCatName($category);                                $getcatdet = Myclass::getCatDetails($category);                                $getcatimage = Myclass::getCatImage($category);                                $subCategory = Myclass::getSubCategory($category);
                        ?>                        <!-- mobile category view-->                        <li class="dropdown  main-mobile-menu">                            <?php if(!empty($subCategory)) {?>                        <a class="dropdown-toggle" data-toggle="dropdown" href="#" style="background:url(<?php echo Yii::app()->createAbsoluteUrl('admin/categories/resized/70/'.$getcatimage); ?>) no-repeat scroll left center / 32px auto; " >                            <?php } else { ?>                        <a class="dropdown-toggle" href="<?php echo Yii::app()->createAbsoluteUrl('/category/'.$getcatdet->slug); ?>" style="background:url(<?php echo Yii::app()->createAbsoluteUrl('admin/categories/resized/70/'.$getcatimage); ?>) no-repeat scroll left center / 32px auto; " >                        <?php } ?>                            <span><?php echo Yii::t('app',$getcatdet->name); ?></span>                            <?php if(!empty($subCategory)) {?>                            <?php } ?>                        </a>                            <?php if(!empty($subCategory)) {?>                            <ul class="dropdown-menu">                                <?php foreach($subCategory as $key => $subCategory):                                //echo $key;                                        $subCatdet = Myclass::getCatDetails($key);                                         if($subCatdet->subcategoryVisible==1){                                ?>                                <li><a href="<?php echo Yii::app()->createAbsoluteUrl('/category/'.$getcatdet->slug.'/'.$subCatdet->slug); ?>"><?php echo Yii::t('app',$subCategory); ?></a></li>                                <?php } ?>                                <?php endforeach;?>                                <li><a href="<?php echo Yii::app()->createAbsoluteUrl('/category/'.$getcatdet->slug); ?>">View all</a></li>                              </ul>                              <?php }?>                          </li>                          <!-- mobile category view end-->                        <?php } endforeach;?>                </ul>

            </div>