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
  • #18495
Closed
Open
Issue created Dec 09, 2015 by Administrator@rootContributor

Fixed navbar size changes with page zoom in some browsers, making perfect body padding impossible.

Created by: kybishop

This is in Bootstrap 4. Changing the font size when using a fixed navbar results in either a gap or overlap between navbar and content, with no clear way to perfectly pad body content. I have confirmed this issue with both Chrome and Safari.

This appears to be the result of the navbar changing some, but not all, sizes when font size increases or decreases. The padding top/bottom is a static 8 px, but the height is variable, meaning setting the padding-top on the body to rems or px doesn't quite work.

Example (make sure to change your font size to see issues!): http://jsfiddle.net/mz85wuck/

Assignee
Assign to
Time tracking