I am trying to make a script (or series of scripts) that will allow me to do this:
- obtrieve the data from a mysql database
- output the data
- drag the element
- save the position
Now, My dilemma is this. Lets say i retrieve the strings from the database:
"hello there, this is on one line"
"hello there<br>this is on another line"
The current script uses the CSS to position the element's however because the text can span multiple lines i could not use 'position: absolute' and specify a location. If i was to do this then there would be some overlapping text in some cases. This is what is making the drag-drop function difficult. What i have had to do is set the text inside a table and spefify the bottom padding. The problem with this is that the drag script does not work as there is no actual positioning.
Does anyone have any ideas on implementing this?