Skip to content

Instantly share code, notes, and snippets.

@jprieton
Created October 23, 2014 15:58
Show Gist options
  • Save jprieton/02bd951f2fc5db60b63e to your computer and use it in GitHub Desktop.
Save jprieton/02bd951f2fc5db60b63e to your computer and use it in GitHub Desktop.
Bootstrap Responsive Text Align
@media (max-width: 767px) {
.text-left-xs {
text-align: left;
}
.text-center-xs {
text-align: center;
}
.text-right-xs {
text-align: right;
}
.text-justify-xs {
text-align: justify;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.text-left-sm {
text-align: left;
}
.text-center-sm {
text-align: center;
}
.text-right-sm {
text-align: right;
}
.text-justify-sm {
text-align: justify;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.text-left-md {
text-align: left;
}
.text-center-md {
text-align: center;
}
.text-right-md {
text-align: right;
}
.text-justify-md {
text-align: justify;
}
}
@media (min-width: 1200px) {
.text-left-lg {
text-align: left;
}
.text-center-lg {
text-align: center;
}
.text-right-lg {
text-align: right;
}
.text-justify-lg {
text-align: justify;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment