Skip to content

Instantly share code, notes, and snippets.

@miguelgazela
Created March 15, 2015 17:51
Show Gist options
  • Save miguelgazela/0e433ed0ccf284c3beeb to your computer and use it in GitHub Desktop.
Save miguelgazela/0e433ed0ccf284c3beeb to your computer and use it in GitHub Desktop.
Front-end CSS - João Bernardino
<style>
div { height: 100px; width: 100px; border: 1px solid black; display: inline-block; }
div:nth-child(2n) {
border: 1px dashed black;
}
div:nth-child(3) {
border: 1px dotted black;
}
/* o que acontece ao acrescentar a seguinte regra? */
/* div:last-child { float: right; } */
</style>
<div></div>
<div></div>
<div></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