title: How can I change the width and height of parent div using js when we only have the id of the child
body: <p>How can I change the width and height of parent div using js when we only have the id of the child</p>
  
  <pre><code>&lt;li&gt;
    &lt;span id="head-ing"&gt;&lt;?=$row['subject']?&gt;&lt;/span&gt;
    &lt;script&gt;
      /*what js to use*/
    &lt;/script&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>The div comes from the Database. so i cannot modify that</p>