Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how do i dynamically set the height of a div to another div? Re: how do i dynamically set the height of a div to another div?

#61839

One other option: use a bit of javascript. This example works in Firefox, but you’d better test in other browsers since I’m not really a Javascript expert:

Code:




test


dfsfsdf

dfsfsdf

dfsfsdf

dfsfsdf

dfsfsdf

dfsfsdf

dfsfsdf

dfsfsdf


This sets both left and right divs to the same height, and then positions a div inside the right div at the bottom.