Having a large HTML file structured like this:
<div style="min-height: 32px; padding: 5px; width: 800px; margin: 50px auto; overflow: auto; font-size: 12px;" class="selectable clearfix selected_layer" id="wrap">
<div class="selectable" id="l1" style="float: left; min-width: 64px; min-height: 32px; padding: 5px; margin: 5px; overflow: auto; width: 200px;"></div>
<div class="selectable" id="l2" style="float: right; min-width: 64px; min-height: 32px; padding: 5px; margin: 5px; overflow: auto;"></div></div>
The goal is to extract the element styles and convert them into CSS properties (each div has an ID for identification).
#wrap{
min-height: 32px;
padding: 5px;
width: 800px;
margin: 50px auto;
overflow: auto;
font-size: 12px;
}
#l1{...}
#l2{...}
...
This task needs to be accomplished on the client side, meaning that JavaScript and jQuery will be used.