s Navbar – Top Of The World

  • Basic code
  • Colors
  • Sizes
  • Options
  • Basic code

    You can see an example of a navbar in top of this page. Following code is the code for this navbar.

    Colors

    By default, background color of the navbar is equal to accent color. But you can simply have your light and dark navbar by adding .navbar-light or .navbar-dark to the .navbar.

    default

    Default

    It's default color, doesn't require any class.

    default

    Light

    Uses .navbar-light class.

    default

    Dark

    Uses .navbar-dark class.

    Example

    
    
    

    Sizes

    Easily change the height size of your navbar by adding .navbar-sm or .navbar-lg to the .site-header. Even you can make it fullwidth by adding .navbar-fullwidth to the .site-header.

    default

    Small

    Uses .navbar-sm class.

    default

    Large

    Uses .navbar-lg class.

    default

    Default

    It's default size, doesn't require any class.

    default

    Fullwidth

    Uses .navbar-fullwidth class.

    Example

    
    
    

    Options

    Still you have more options to customize your navbar for yourself.

    Sticky navbar

    By adding .sticky class to the .site-header you can fix your navbar on top of the page.

    
    
    

    Transparent navbar

    By adding .navbar-transparent class to the .site-header you can remove background color of the navbar. It's a good practice to have transparent navbar when you included a banner to your page; like the following image.


    index