So I have two divs inside the "Content" div (Shown as the white box in the image below.) and they both have text in them, I want the "Content" div to have the same height and width as the two divs below joined, but the "Content" div's width is the only thing that is "normal".
I even tried to set the height manually but that's not what I want, I wanted to have the height automatically be the same as the content's.
Why are you like this "Content" div?
The website being inspected:
The HTML code and CSS rules required to recreate the bug (Except that in here, the div is now grey):
#Content {
background-color: grey;
padding: 10px;
position: relative;
top: 136px;
}
#Main {
border-right: solid 2px;
padding-right: 2%;
width: 55%;
float: left;
}
#Sidebar {
width: 35%;
float: right;
}
<div id="Content">
<div id="Main">
<h1>Lorem ipsum</h1>
<p>lorem ipsum dolor sit amet</p>
</div>
<div id="Sidebar">
<h2>Lorem ipsum</h2>
</div>
</div>