I am trying to accomplish a positioning scheme that is hard with CSS alone. I could do it easily with JavaScript, using something like:
function onWindowResize(new_width,new_height){
$('#element')
.css({ left: some_function(new_width),
top: another_function(new_height) });
};
Is it OK to use that approach? What would be possible drawbacks?