How do I bottom-align grid elements in bootstrap fluid layout

前端 未结 10 1694
你的背包
你的背包 2020-12-04 10:21

I have a fluid layout using Twitter\'s bootstrap, wherein I have a row with two columns. The first column has a lot of content, which I want to fill the span normally. The

10条回答
  •  再見小時候
    2020-12-04 10:44

    Just set the parent to display:flex; and the child to margin-top:auto. This will place the child content at the bottom of the parent element, assuming the parent element has a height greater than the child element.

    There is no need to try and calculate a value for margin-top when you have a height on your parent element or another element greater than your child element of interest within your parent element.

提交回复
热议问题