Skip to content

Instantly share code, notes, and snippets.

@co0kie
Created May 11, 2015 11:39
Show Gist options
  • Save co0kie/35eae09b67e8c1e2d28b to your computer and use it in GitHub Desktop.
Save co0kie/35eae09b67e8c1e2d28b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="grands-parent">
<div class="parent">
mom
<div class="anak-1">
child
</div>
</div>
</div>
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.grands-parent{
width: 800px;
height: 300px;
border: 1px solid green;
position: static;
.parent{
width: 500px;
height: 200px;
border: 1px solid red;
// position: relative;
.anak-1{
position: absolute;
top: 0;
right: 0;
width: 80px;
height: 80px;
border: 1px solid blue;
}
}
}
.grands-parent {
width: 800px;
height: 300px;
border: 1px solid green;
position: static;
}
.grands-parent .parent {
width: 500px;
height: 200px;
border: 1px solid red;
}
.grands-parent .parent .anak-1 {
position: absolute;
top: 0;
right: 0;
width: 80px;
height: 80px;
border: 1px solid blue;
}
<div class="grands-parent">
<div class="parent">
mom
<div class="anak-1">
child
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment