Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS for comments

Tags:

css

I am building a blog and for my comments I have this CSS.

#comments {
 position:absolute;
 border: 1px solid #900;
 border-width: 1px;
    border-style: solid;
    border-color: #900;
 border-bottom: none;
 border-right-style:none;
 left:0px;
 top:352px;
 width:475px;
 height:183px;
}

However, after posting only one comment to test if it works, the text fills the div and moves out of bottom div limits. I want the div to expand as more comments come. How do I do that?

like image 544
Gandalf Avatar asked Dec 02 '25 08:12

Gandalf


1 Answers

Use min-height: 183px instead of height: 183px, so it can expand if needed.

like image 146
Gabi Purcaru Avatar answered Dec 03 '25 22:12

Gabi Purcaru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!