How to make a div height to fill available space

前端 未结 8 934
一整个雨季
一整个雨季 2021-02-14 11:04

I have a 3 column layout with some details below the columns.

\"enter

You will not

8条回答
  •  温柔的废话
    2021-02-14 11:24

    The approach you made is very confusing and would make it harder to control with CSS. If you convert it to a table you'd have better results.

    Some guy over here

    It doesn't matter what is being said at the moment. Nothing is said here.

    Computer Development

    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...

    Story telling

    This is another short story.

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    Then, you need to remove float:left; from line 8 of your CSS and insert this code at the bottom.

    tr#row td {
        width: 30%;
        background-color: #DDD;
        vertical-align: top;
    }
    

提交回复
热议问题