Here's my website:
Take a look here!
I have a menu on the left column that I want to center. Take a look at the image below for a better understanding of what I'm trying to achieve.
https://i.stack.imgur.com/ZzprT.png
Here is the JavaScript code:
function centerContent()
{
var container = $('#secondary');
var content = $('#primary-sidebar');
var logo=$('#secondary h1:first-child');
content.css("margin-top", (container.height()-logo.height()-content.height())/2);
}
Could you please help me figure out why the menu is displaying too low? Is the calculation incorrect?
Thank you in advance!