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
  • Merge requests
  • !2267

Horizontal Mode for Description Lists

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/dominicbarnes/dl_horizontal into 2.0.2-wip Feb 26, 2012
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 3

Created by: dominicbarnes

This may be a controversial change, but I have used it a lot in my projects so it may be of use in Bootstrap itself.

Basically, this gives description lists the ability to line up like .form-horizontal. Which puts the <dt> in the "left column" with their corresponding <dd> counterparts in the right column.

I've also added sizing classes here that mirror form inputs. (mini, small, normal, large, xlarge and xxlarge)

NOTE There is a caveat to this that should not be ignored, and may disqualify this for inclusion. If the content of the <dt> wraps to more lines that it's corresponding <dd>, then they no longer line up, affecting rows below potentially as well. I've tried to find a decent solution to this problem, but my only recourse so far was to add the various sizes to leave the user some options.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dominicbarnes/dl_horizontal