I was wondering what the correct way of programatically setting an elements position inside a parent element (as a percentage) from javascript would be.
In CSS you can do something like:
left: 25%;
There are two things I would like to avoid: jQuery, and calculating an absolute position based on the current size of the parent element.