I'm trying to accomplish example like instagram post: https://www.instagram.com/p/BXgsKFLBczA/?taken-by=claymicro List expands but does not push footer down
and In my example if I add margin-bottom to comment class it pushes height of <div class="post-details-container">
and the there will be gap.
What I want to is to increase margin-bottom between comments but that should increase overflow of
<div class="body>
container, not expand other div and leave that green gap in image container.
Jsfiddle EXAMPLE: https://jsfiddle.net/ou21qe09/2/
if I add more than 5px to comment class it expands and leaves green gap in image container. Also adding padding-top to <div class="header">
also pushes div height and leaves green gap, Note that I can't set max-height in pixels of body or comment container because image size varies and that determines <div class="post-details-container"
height.
.comment {
margin-bottom:10px;
}
What should I do ? set max-height on <div class="post-details-container">
or some other workaround ?
Thank you very much ! If more explanation needed just tell me :).