html - Div 50% inside a container -


Can we set up height: 50% for a divider inside a single container (Already a table cell)?

The quantities we do not know and they can dynamically change a lot.

You can set the height for a div, but the parent elements are clearly defined by their height Should also be from the form. For example:

  & lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body style = "height: 100%" & gt; & Lt; Table style = "height: 100%" & gt; & Lt; TR & gt; & Lt; Td style = "height: 100%" & gt; & Lt; Div style = "height: 50%" & gt; & Lt; / Div & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

It does not matter that the height of the container changes dynamically, as long as it is set. There are other methods, it is probably the easiest.


Comments