At the moment I have a page where users can create divs and drag/drop them into another div id="holder"
.
I have a save button that gets the html of holder. $('#Holder').html();
The divs in holder have some styling from a CSS file and inline styling: style="left:10px; right:10px; background-color:#000000;"
added by jQuery.
What I want is to combine the styling from my CSS file with the inline styling so I am able to use $('#holder').html();
and have all styles.
Question: How can I parse the CSS styling into the style=""
attr.
So after the info an example of what I have: http://jsfiddle.net/Ub9ZD/
As you can see im missing the width, height and position style.
== EDIT ==
After looking at given link I'm still stuggling with this.
I still can't combine the inline style and CSS style from file.
Progress: http://jsfiddle.net/Ub9ZD/39/