Jump to content

Stretch Div Height to Fill Cell?


avario

Recommended Posts

I am creating a design for a Forum Website (school project).

I have created this design for a post:

example1.jpg

 

But I don't want the post content to be centred in the midle (or top/bottom), I want the middle section (which is a separate div) to stretch out to fill the table cell such as in this image (I have just inserted breaks to show you what I mean):

example2.jpg

 

Does anyone no how to do this? Please let me know if you need more information such as source codes...

Link to comment
https://forums.phpfreaks.com/topic/193160-stretch-div-height-to-fill-cell/
Share on other sites

It would be helpful to see the css that's specific to this display. Not the entire site, just this section as you've posted in the image.

 

The box height issue is a little tricky since height: 100%; typically just means expand with the content inserted. But, you can add min-height: 100%; along with the height parameter and see if that fixes it. May not.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.