Width and or hight of element based on parent element

Changing an element's sizes dynamically based on VH and VW of a device is wonderful. 

I'd also like to be able to change an element's size dynamically based on its parent element (or even another element on the webpage)

Example:

I nest a 4x4 grid inside a div. I'd like to make each of the elements inside of the 4x4 grid to be 10% width and height of the div. 

 

  • Roarke Clinton
  • Jan 25 2019