Skip to content

Instantly share code, notes, and snippets.

@vinhnglx
Created October 13, 2014 15:58
Show Gist options
  • Save vinhnglx/2dcc9d5f1f26e047fba7 to your computer and use it in GitHub Desktop.
Save vinhnglx/2dcc9d5f1f26e047fba7 to your computer and use it in GitHub Desktop.
Compass CSS Regions
@import "compass/css3";
.main_content {
@include flow-into(target);
}
.regions div {
@include flow-from(target);
width: 150px;
height: 190px;
border: 3px solid #000;
padding: 10px;
border-radius: 8px;
float: left;
}
.main_content
| Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
.regions
div
div
div
@vinhnglx
Copy link
Author

@vinhnglx
Copy link
Author

NOTE: Here is the list of browsers support CSS Regions: http://caniuse.com/#feat=css-regions.

And Chrome has not supported CSS Regions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment