For more information, visit this link.
I am looking to customize the comments area by giving it a solid color that dynamically adjusts its height based on the number of comments. The background color should expand if there are many comments and shrink if there are only a few.
To achieve this, I have placed the <section class="comment">
inside a new div called
<div id="commentsbackground">
and applied the following CSS:
#commentsbackground {
width: 6000px;
margin-left: -1172px;
background-color: #A6A8AF;
}
section.comment {
height: 500px;
margin-left: 1172px;
}
Although this setup creates a larger background that should work well with various screen resolutions, it's not functioning as desired. I tried setting height: auto;
, but it didn't have the desired effect.
I am seeking assistance in achieving the final result of having a white background for the post area, a grey background for the comments area, and a black background for the footer.