Created
January 21, 2015 08:48
-
-
Save nurbek-ab/f5cdbdb350f418278794 to your computer and use it in GitHub Desktop.
Bootstrap text-align for different screen sizes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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