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
  • #21886
Closed
Open
Issue created Jan 31, 2017 by Administrator@rootContributor

Firefox bug: Figures break grid

Created by: alienlebarge

Description

When using Figures in a grid, it doesn't fit the width of the container.

Here's a Pen to reproduce the bug

Environment

  • Browser version: All firefox version (.zip of screenshots)
  • Bootstrap version: 4.0.0-alpha.6

Cause

The problem is caused by the following code:

.figure {
  // Ensures the caption's text aligns with the image.
  display: inline-block;
}

Additional Info

  <div class="row">
    
    <article class="col-md-6">
      <figure class="figure">
        <img src="..." class="figure-img img-fluid rounded" alt="...">
        <figcaption class="figure-caption">...</figcaption>
      </figure>
      <p>...</p>
    </article><!-- /.col-md-6 -->
    
    <article class="col-md-6">
      <figure class="figure">
        <img src="..." class="figure-img img-fluid rounded" alt="...">
        <figcaption class="figure-caption">...</figcaption>
      </figure>
      <p>...</p>
    </article><!-- /.col-md-6 -->

  </div><!-- /.row -->

Firefox 45 Chrome 55

Assignee
Assign to
Time tracking