Created
September 4, 2012 15:47
-
-
Save jehoshua02/3622621 to your computer and use it in GitHub Desktop.
margins are not additive ... seems to take the max margin of the two elements.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>margin test</title> | |
<style type="text/css"> | |
.hello { | |
background-color: blue; margin-bottom: 8px; | |
} | |
.world { | |
background-color: red; margin-top: 8px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="hello" style="">hello</div> | |
<div class="world">world</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment