Skip to content

Instantly share code, notes, and snippets.

@miguelgazela
Created March 15, 2015 18:24
Show Gist options
  • Save miguelgazela/860248d11fed095a27b0 to your computer and use it in GitHub Desktop.
Save miguelgazela/860248d11fed095a27b0 to your computer and use it in GitHub Desktop.
Front-end CSS João Monteiro
<style>
.row > div { height: 100px; width: 100px; border: 1px solid black; }
div:not(.row) { display: inline-block; }
.row > div:before {
content: "";
display: block;
height: 50px;
width: 50px;
border: 1px dashed black;
position: relative;
top: 25px;
left: 25px;
}
/* o que acontece ao acrescentar a seguinte regra? */
/* .row > div:before { position: absolute; } */
</style>
<div class="row">
<div></div>
<div></div>
</div>
<div class="row">
<div></div>
<div></div>
</div>
@miguelgazela
Copy link
Author

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