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
  • !5255

Add new class .space for adding horisontal space.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/Serhioromano/feature-spacer into 2.1.2-wip Sep 24, 2012
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 4

Created by: Serhioromano

When you markup a page, especialy a column it is ver often when you need to add a little space between to <div>. And you want this space be equal everywhere for everything looks aligned.

Right now I use <br /> or simple add additional classes and add CSS instruction. But that would be nice to have horizontal spacer with would add the same space as we have width between span1-12.

This PR adds new class called .space. This class adds horizontal space equal to vertical space between span1-12

Here is the example of the usage.

<div class="container">
    <div class="row">
        <div class="span6">
            <div class="pull-right"><a class="btn">22</a></div>
            <div class="clearfix space"></div>
            <p>Col 1</p>
        </div>
        <div class="span6">Col 2</div>
    </div>
    <div class="space"></div>
    <div class="row space">Row 2</div>
    <div>Something</div>
</div>
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Serhioromano/feature-spacer