How to find the center of the div using jquery
<p>I have a div tag with id container. How can I find its center using either jquery or javascript?</p>

<pre><code>&lt;div id="container"&gt;&lt;/div&gt;
</code></pre>

<p>here is css</p>

<pre><code>#container {
    width: 300px;
    height: 300px;
    border: 1px solid red;
}
</code></pre>
