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
  • #17711
Closed
Open
Issue created Sep 27, 2015 by Administrator@rootContributor

nav-pills inside a card-block doesn't maintain the card-height.

Created by: JochemKuijpers

(bootstrap v4)

When placing a nav-pills list of links inside a card-block, the card doesn't maintain the required height.

This problem does not occur with any of the other lists so I think it's unintended behaviour.

Example of nav-pills

Example of nav-tabs

Example of base nav

As you can see, only nav-pills has unintended behaviour. In case anything happens to the hosted code examples, here's a screenshot and the core part of the code to re-create this issue.

<div class="card">
    <div class="card-block">
        <ul class="nav nav-pills">
            <li class="nav-item">
                <a class="nav-link active" href="#">navlink 1</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">navlink 2</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">navlink 3</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">navlink 4</a>
            </li>
        </ul>
    </div>
</div>

Assignee
Assign to
Time tracking