Skip to content

Instantly share code, notes, and snippets.

@06b
Created August 26, 2015 17:58
Show Gist options
  • Save 06b/551281df30801b109384 to your computer and use it in GitHub Desktop.
Save 06b/551281df30801b109384 to your computer and use it in GitHub Desktop.
Foundation Utility Float Right Classes for different screen sizes
/* Compiled CSS (with default Foundation breakpoints) - http://stackoverflow.com/questions/30310667/no-right-floating-for-small-state-in-foundation-framework/30319607#30319607 */
@media only screen and (max-width: 40em) {
.small-only-right {
float: right !important;
}
}
@media only screen {
.small-right {
float: right !important;
}
}
@media only screen and (min-width: 40.0625em) and (max-width: 64em) {
.medium-only-right {
float: right !important;
}
}
@media only screen and (min-width: 40.0625em) {
.medium-right {
float: right !important;
}
}
@media only screen and (min-width: 64.0625em) and (max-width: 90em) {
.large-only-right {
float: right !important;
}
}
@media only screen and (min-width: 64.0625em) {
.large-right {
float: right !important;
}
}
@media only screen and (min-width: 90.0625em) and (max-width: 120em) {
.xlarge-only-right {
float: right !important;
}
}
@media only screen and (min-width: 90.0625em) {
.xlarge-right {
float: right !important;
}
}
@media only screen and (min-width: 120.0625em) and (max-width: 6249999.9375em) {
.xxlarge-only-right {
float: right !important;
}
}
@media only screen and (min-width: 120.0625em) {
.xxlarge-right {
float: right !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment