Last active
December 11, 2015 19:38
-
-
Save tsi/4649785 to your computer and use it in GitHub Desktop.
Comparing Sass vs CSS layout systems - using CSS
This file contains hidden or 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
/* 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