I want to do the following:
Learn the width of #sidebar and .main-content
If the width of the #sidebar is less than the width of .main-content, assign a width from .main-content to it
And if the width of #sidebar is greater than the width of .main-content, then for .main-content set the width from #sidebar.
I'm in jQuery for a couple of days, sorry for the stupid question and code.
function Equal() { var mainHeight = $(".main-content").height(); var sideHeight = $("#sidebar").height(); if (var sideHeight > var mainHeight) { $(".main-content").css("height", sideHeight); }; if (var sideHeight < var mainHeight) { $("#sidebar").css("height", mainHeight); }; }); }