O'Reilly logo

Bootstrap 4 Site Blueprints by Ian Whitley, David Cochran, Bass Jobsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making responsive adjustments

On small screens, the elements of our page header may overlap:

Making responsive adjustments

We need to move the toggle to the left-hand side of our navbar. This can be done as follows:

  1. Open the scss/includes/_header.scss file in your editor and add the following SCSS code to it:
              header[role="banner"] { 
                .navbar-toggler { 
                float: left; 
                } 
              } 
    
  2. Save and compile these changes, and you'll see the navbar toggle shift to the left end of the collapsed navbar, as shown in the following screenshot:
Making responsive adjustments

So far so good.

Now to address the problem of crowding by hiding the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required