Created
August 4, 2012 20:59
-
-
Save rkellermeyer/3259906 to your computer and use it in GitHub Desktop.
Give nested div same color as background
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 lang="ru-RU"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<style> | |
body, .nested { | |
background: blue; | |
} | |
.container, .nested { | |
margin: 10px; | |
} | |
.container { | |
background: red; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
Container Class | |
<div class="nested">Nested Div</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment