Skip to content

Instantly share code, notes, and snippets.

@tsi
Last active December 11, 2015 19:38
Show Gist options
  • Save tsi/4649785 to your computer and use it in GitHub Desktop.
Save tsi/4649785 to your computer and use it in GitHub Desktop.
Comparing Sass vs CSS layout systems - using CSS
/* With a CSS grid system */
/* Using a Css system, you'll have in your mark-up something like that
*
* <div class="col span_1_of_2"></div>
* <div class="col span_1_of_2"></div>
*
* Then, for a simple rwd task, you'll have this in your CSS:
* (taken from http://www.responsivegridsystem.com/)
*/
/* GO FULL WIDTH AT LESS THAN 480 PIXELS */
@media only screen and (max-width: 480px) {
.span_2_of_2 {
width: 100%;
}
.span_1_of_2 {
width: 100%;
}
}
/*
* See how they take .span_1_of_2 and make it spread 100% wide, that doesn't
* make any sense to me.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment