Skip to content

Instantly share code, notes, and snippets.

@miguelgazela
Created March 16, 2015 21:56
Show Gist options
  • Save miguelgazela/229d3ccd48da7fefce13 to your computer and use it in GitHub Desktop.
Save miguelgazela/229d3ccd48da7fefce13 to your computer and use it in GitHub Desktop.
Front-end CSS - Joana Ferreira
<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:last-child:after {
content: "";
width: 100%;
height: 50%;
border: 1px dotted black;
position: absolute;
top: 100%;
}
/* 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