Sorry, I saw that (I tested it alot and removed it).
This is what I used
if (isset($_SESSION[$_SESSION['id']]['fonts'])) {
for ($cFonts = 0; $cFonts < $_SESSION[$_SESSION['id']]['fonts']['count']; $cFonts++) {
if ($_SESSION[$_SESSION['id']]['fonts'][$cFonts]['side'] == $_SESSION[$_SESSION['id']]['side']) {
$zindex = $zindex + $cFonts;
$images .= '<img id="' . $_SESSION[$_SESSION['id']]['fonts'][$cFonts]['id'] . '" src="' . $_SESSION[$_SESSION['id']]['fonts'][$cFonts]['location'] . '?dummy=' . time() . '" style="position: absolute; z-index: ' . $zindex . '; cursor: move; margin-left: ' . $_SESSION[$_SESSION['id']]['fonts'][$cFonts]['x'] . 'px; margin-top: ' . $_SESSION[$_SESSION['id']]['fonts'][$cFonts]['y'] . 'px;" onDblclick="xmlhttp(\'TEXT\', \'includes/inc.get.session.text.php\', \'?id=' . $_SESSION[$_SESSION['id']]['fonts'][$cFonts]['id'] . '\');" />';
$id .= $_SESSION[$_SESSION['id']]['fonts'][$cFonts]['id'] . ',';
}
}
}
And it loads into the following div.
<div id="previewFonts" style="position: relative;">
</div>
I tried also relative on the images, can't figure it out.