Choosing bootstrap vs material design

Báo cáo
Câu hỏi
250 lượt xem

Vui lòng giải thích tại sao bạn cho rằng câu hỏi này nên được báo cáo?

Báo cáo Hủy

I am a novice when it comes to Bootstrap and css in general. I would like a site with a fixed sidebar, fixed top nav and main content that scrolls.

The navbar is fixed and works ok. The layout of the sidebar and main content is fine too. The problem comes when I set the sidebar to fixed. The main content overlaps the sidebar.

I have tried adding a margin to the left of the main content to push it over but it looks horrible when resized to smaller device.

What is the correct way to achieve a fixed sidebar whilst still maintaining responsiveness?

Câu trả lời

  1. 25 Tháng Một, 2017 at 8:17 chiều

    Please briefly explain why you feel this answer should be reported .

    Sửa Cancel

    I am trying to use file_get_contents However that gives me error .

    
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: file_get_contents(https://api.telegram.org/bot [number token]/getUpdates):
    
    Filename: controllers/lifeChange.php
    
    
    Line Number: 19
    
    Backtrace:
    
    File: C:\OpenServer\domains\localhost\admin\application\controllers\lifeChange.php
    Line: 19
    Function: file_get_contents
    
    File: C:\OpenServer\domains\localhost\admin\index.php
    Line: 315
    Function: require_once
    																		 
    HAY NHẤT
  2. Jasica
    25 Tháng Một, 2017 at 8:40 chiều

    Please briefly explain why you feel this answer should be reported .

    Sửa Cancel

    Set it as the font John Doe Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam fringilla augue nec est tristique auctor. Donec non est at libero vulputate rutrum.

    public function popular($parent = null,$child = null)
      {     
        $products =  Product::with('subcategory')->with('subchild')->paginate(16)->sortByDesc('view_cache');
        return view('Frontend.listing.popular')->with(['products'=>$products]);
       }
       
       
       namespace App\Providers;
    
    use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
    use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
    
    class EventServiceProvider extends ServiceProvider
    {
        /**
         * The event listener mappings for the application.
         *
         * @var array
         */
        protected $listen = [
            'App\Events\SomeEvent' => [
                'App\Listeners\EventListener',
            ],
        ];
    
        /**
         * The subscriber classes to register.
         *
         * @var array
         */
        protected $subscribe = [
            'App\Listeners\UserEventListener',
        ];
    
        /**
         * Register any other events for your application.
         *
         * @param  \Illuminate\Contracts\Events\Dispatcher  $events
         * @return void
         */
        public function boot(DispatcherContract $events)
        {
            parent::boot($events);
        }
    }
    																		 

Để lại bình luận

Duyệt

Thủ đô Việt Nam là gì? ( Hà Nội )

You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>