add a logo to the bootstrap navbar code example Example 1: bootstrap 4 navbar with logo and nav on right Navbar Home (current) Features Pricing Disabled Example 2: bootstrap navbar logo center Try this: .navbar { position: relative; } .brand { position: absolute; left: 50%; margin-left: -50px !important; /* 50% of your logo width */ display: block; } Centering your logo by 50% and minus half of your logo width so that it won't have problem when zooming in and out. Tags: Misc Example Related passing command line arguments in python code example --ignore-platform-reqs docker-compose code example angular 8 minlength validation code example dot env node code example if then else in java script code example skip iteration python loop code example ajouter class en media query code example bootstrap alert adding in database code example python3 datetime.now code example redirect to web laravel code example save file javascript by get query code example mongodb query and code example Recent Posts Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python