Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #19349
Closed
Open
Issue created Feb 29, 2016 by Administrator@rootContributor

.navbar-brand with non-anchor element isn't vertically centered

Created by: petetnt

This issue is one issue that can be fixed in two different ways that somewhat make it seem like it's two different issues 🐱

If we look at the .navbar-brand on the docs you'll see this pretty vague statement:

The .navbar-brand can be applied to most elements, but an anchor works best

The working best part shows up immediately in the examples below because the h1.navbar-brand element is not vertically aligned:

image

There are two ways to solve this:

  1. Always reset and setup the margins paddings etc. for the .navbar-brand-elements or
  2. Make a mention about the users needing to change the CSS if other elements that a are being used, sort of like how the v3 version mentions overriding CSS when using images
Assignee
Assign to
Time tracking