Created
March 15, 2015 18:24
-
-
Save miguelgazela/860248d11fed095a27b0 to your computer and use it in GitHub Desktop.
Front-end CSS João Monteiro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resultados em https://jsfiddle.net/miguelgazela/xnt9fx0g/2/