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

text-{size}-(start/end) as well as text-{size}-(right/center/left)

Created by: fisharebest

In scss/utilities/_text.scss, we have three text alignment options

    .text#{$infix}-left   { text-align: left !important; }
    .text#{$infix}-right  { text-align: right !important; }
    .text#{$infix}-center { text-align: center !important; }

Can we add two more?

    .text#{$infix}-start { text-align: start !important; }
    .text#{$infix}-end   { text-align: end !important; }

This will be a great help for sites that support both LTR and RTL languages. Here, we generally need to align to the start/end, not necessarily the left/right.

A typical use case might be to align form labels with their inputs.

	<div class="row form-group">
		<label class="col-sm-3 col-form-label text-sm-end">
			XXX
		</label>
		<div class="col-sm-9">
			<input type="text" class="form-control">
		</div>
	</div>
Assignee
Assign to
Time tracking