Change horizontal placement of logo & title in website navbar #12130
              
                Unanswered
              
          
                  
                    
                      kelly-sovacool
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| Not easily, you likely need CSS or even JavaScript to modify the structure of the nav bar ara. The "brand" container takes only the space it needs. Even outside of Quarto, this is not a simple design choice, because if you want to have the "brand" centered, what should happen to the navbar if there is no space left for it? Collapse? But you don't want to collapse all the time if you have a long navbar. Here is a quick example to centre-ish the title when the navbar is collapsed: .navbar .navbar-container>.navbar-brand-container {
  margin-left: auto !important;
  margin-right: auto !important;
} | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Description
By default, the website title and logo are placed on the left side of the navbar.
_quarto.ymlIs it possible to customize the horizontal placement so that they are aligned to the center of the navbar?
(This discussion is similar but did not provide a reprex)
Beta Was this translation helpful? Give feedback.
All reactions