I need a little help with setting "padding left" of <div id="menu"> to equal the width of <ol>
Here's an example code for reference
<ol style="width:80%">some code</ol>
<div id="menu">some text</div>
I'm trying to do it with jQuery, I don't know it well so this is my attempt
$("#menu").css({"paddingLeft": "$('ol').width()"});
It works only if I enter a value myself like 400px in here $("#menu").css({"paddingLeft": "400px"});
But this is for a responsive design and I want it to automaticaly get the value of <ol> element and in pixes