Skip to content

Instantly share code, notes, and snippets.

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