VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/how-to-align-navbar-logo-to-the-left-screen-using-bootstrap/

⇱ How to Align navbar logo to the left screen using Bootstrap ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Align navbar logo to the left screen using Bootstrap ?

Last Updated : 1 Jun, 2020
It is very easy in Bootstrap to align items left and right by using the bootstrap classes. By default, it sets to left. If you want to align items center or right then it will be done by yourself. To align the navbar logo to the left of the screen with the Bootstrap method is a quick trick that can save you from writing extra CSS. In this, we simply add another div tag above the div tag having class navbar navbar-expand-lg navbar-light bg-light fixed-top py-lg-0. Example: Output: 👁 Image
Comment
Article Tags:

Explore