I have a google mapping application in which an absolutely positioned container div contains two floating div's of varying height which is over the map. I'm having trouble wrapping the container div around the two floating inner divs and eliminating the extra non-wrapped div space under the first smaller inner div. I think I need to have the container div wrap around it's content.
Here is the Fiddle. I'm trying to get rid of the extra yellow space in the fiddle that falls below the first inner div with the blue background.
div.container
{
display:block ;
background-color:Yellow;
color:black;
position: absolute;
border:2px solid blue;
z-index: 600;
}
div.content1
{
width:20px;
height: 30px;
display:inline-block;
background-color: #4b6c9e;
color:White;
position: relative;
border:2px solid white;
z-index: 700;
float:left;
}
div.content2
{
width:250px;
height: 400px;
display:inline-block ;
background-color:Gray;
color:White;
position: relative;
border: 2px solid red;
z-index: 699;
float:right;
}
<div class="container">
<div class="content1">
<p>+</p>
</div>
<div class="content2">
<p>some content here</p>
</div>
</div>