Created
May 10, 2012 06:32
-
-
Save chrsr/2651460 to your computer and use it in GitHub Desktop.
Strange Chrome Dev Tools margin behaviour...
This file contains 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<div style="width: 100px; height: 100px; margin-right: 30px; background: blue;"> | |
<div style="width: 50px; height: 50px; margin: 0; background: red;"> | |
</div> | |
</div> | |
<div style="width: 50px; height: 20px; background: green;"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pull this up in Chrome Dev Tools and inspect the blue div. What is going on with the margin inspection?