Skip to content

Instantly share code, notes, and snippets.

@nurbek-ab
Created January 21, 2015 08:48
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nurbek-ab/f5cdbdb350f418278794 to your computer and use it in GitHub Desktop.
Save nurbek-ab/f5cdbdb350f418278794 to your computer and use it in GitHub Desktop.
Bootstrap text-align for different screen sizes
.text-xs-left {
text-align: left !important;
}
.text-xs-right {
text-align: right !important;
}
.text-xs-center {
text-align: center !important;
}
.text-xs-justify {
text-align: justify !important;
}
@media (min-width: 768px) {
.text-sm-left {
text-align: left !important;
}
.text-sm-right {
text-align: right !important;
}
.text-sm-center {
text-align: center !important;
}
.text-sm-justify {
text-align: justify !important;
}
}
@media (min-width: 992px) {
.text-md-left {
text-align: left !important;
}
.text-md-right {
text-align: right !important;
}
.text-md-center {
text-align: center !important;
}
.text-md-justify {
text-align: justify !important;
}
}
@media (min-width: 1200px) {
.text-lg-left {
text-align: left !important;
}
.text-lg-right {
text-align: right !important;
}
.text-lg-center {
text-align: center !important;
}
.text-lg-justify {
text-align: justify !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment