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
  • #11411
Closed
Open
Issue created Nov 08, 2013 by Administrator@rootContributor

.table in .table-responsive inside .panel still has bottom-margin

Created by: moollaza

Please correct me if I'm wrong, but looking at panels.less lines 58-62:

.panel {
  > .table,
  > .table-responsive {
    margin-bottom: 0;
  }

https://github.com/twbs/bootstrap/blob/master/less/panels.less#L52

It looks like the margin is supposed to be removed from the table, however its removing the margin from the .table-response wrapping the .table rather than the .table itself.

This also assumes there is no .panel-heading which in my case I also have.

I believe the fixed code should look something like this:

.panel,
.panel > .panel-heading {
  > .table,
  > .table-responsive > .table {
    margin-bottom: 0;
  }

**Note: This margin is properly removed once the width drops below 767px because table.less has proper css to handle .table-responsive > .table

Update: Reproduced with JSFiddle: http://jsfiddle.net/moollaza/P3YC9/3/

Assignee
Assign to
Time tracking