I’m looking for some advice on a project I am working on and would be appreciative of any assistance.
To make a drag and drop CMS which allows a user to d
This is what I would to devise a system that automagically does that:
(pseudo code, mostly)
window.width
and window.height
of what user is visualizing on his screencalculate a percentage for every element with a simple formula:
var elWidth = (element.width / window.width) * 100
var elHeight = (element.height / window.height) * 100
display:inline-block;
This should be a good base to start with, provided that you designed a good UI to derive every nested DIV and a sort of "magnetic" grid to align the items.
What do you think?