Setting a "margin" or "padding" in CSS for a sliding panel
I'm trying to programatically [JS] set the space at the top of a panel.
Ideally I want the panel to start at "x" pixels from the top, but nothing I use seems to achieve this, can you help please?
so far I've tried:
Appery("journeypanel").css("padding-top".headerheight+"px");
Appery("journeypanel").css("margin-top".headerheight+"px");
If I set the "padding" for the top manually in the panel properties, this achieves what I want, but I need to do this through JS as the value needs to change.