Skip to content

Instantly share code, notes, and snippets.

@kunigami
Last active January 20, 2018 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/fe8aacc8371ea1f06e7da32985104b03 to your computer and use it in GitHub Desktop.
Save kunigami/fe8aacc8371ea1f06e7da32985104b03 to your computer and use it in GitHub Desktop.
Position: static
<div class="green box200">
<div class="blue box100" style="position: static">A</div>
</div>
Position: relative
<div class="green box200">
<div class="blue box100" style="position: relative">B</div>
</div>
Position: absolute
<div class="green box200" style="position: relative">
<div class="blue box100" style="position: absolute;">
<div class="red box50" style="position: absolute;">C</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment