I have two divs nested inside of a div. I set my background in the outer div but it only applied to the first inner div. I can fix the problem by setting the height of the outer div but then I would have to change the height every time I modify the height of the inner div. My code is below. Any help would be appreciated.
</head>
<style>
.redgradient{
background: linear-gradient(#f75d5d,#ed7878 );
}
#intro{
float: left;
padding-left: 20px;
width: 400px;
}
</style>
<body>
<div class="container ">
<div class="redgradient">
<div >
<h1>Kendall Ponder's Wonderful Life</h1><p />
</div>
<div id="intro">
Here is some text.
</div>
</div>
</body>
</html>