Currently, I'm tackling the challenges of working on my website and trying to understand JavaScript better.
I am facing an issue where I want my aside menu's padding to adjust when my header shrinks in height.
Furthermore, at the end of the webpage, I want the header to reset its height, causing the aside menu's padding to also readjust.
I aim to achieve a dynamic movement for my aside menu, synced with the changing height of the header.
This is the code snippet I have developed until now:
$(document).ready(function(){
var hh = $('header').height();
$('aside').css('padding-top', hh)
});