Skip to content

Instantly share code, notes, and snippets.

@miguelgazela
Created March 16, 2015 21:59
Show Gist options
  • Save miguelgazela/96bfc3d43c8de94e3ae5 to your computer and use it in GitHub Desktop.
Save miguelgazela/96bfc3d43c8de94e3ae5 to your computer and use it in GitHub Desktop.
Front-end CSS - Luís Melo
<style>
div {
border: 1px solid black;
width: 100px;
height: 50px;
margin: 0 auto;
margin-bottom: 10px;
position: relative;
}
div:nth-child(2n) {
border: 1px dashed black;
}
div:nth-child(3n) {
left: 50px;
}
/* o que acontece ao acrescentar a seguinte regra? */
/* div { display: inline-block; } */
</style>
<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