title: How can I create a dynamic CSS margin?
body: <p>I could probably do this in PHP, but I would have to include the CSS into my PHP file. So, I have a parent div whose height always varies, and then I have a child div whose <code>width: 100%; height: 100%;</code> in that child div, I have text. The problem is, I want to vertically center the text inside the <code>ChildChild</code> div. </p>
  
  <pre><code>#parentDiv {
  width: 200px;
  height: PHP generates this;
  }
  #Child {
  width: 100%;
  height: 100%;
  }
  #ChildChild {
  margin: how do I do this?
  }
  
  &lt;div id="ParentDiv"&gt;
  &lt;div id="Child"&gt;
  &lt;div id="ChildChild"&gt;
  HELLO!
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>