Holas,
Aqui el codigo:
Código PHP:
Ver original<?php
if(!isset($_POST['top'])) { ?>
<form name="form1" method="POST">
Top
<input type="text" name="top" />
<br />
Left
<input type="text" name="left" />
<br />
Width
<input type="text" name="width" />
<br />
Height
<input type="text" name="height" />
<br />
<input type="submit"/>
</form>
<?php
}
else
{ if(isset($_POST["top"]) && isset($_POST["left"]) && isset($_POST["width"]) && isset($_POST["height"])) { $top=trim($_POST["top"]); $left= trim($_POST["left"]); $width= trim($_POST["width"]); $height= trim($_POST["height"]);
echo "<div style = 'top:".$top."px; left:".$left."px; height:".$height."px; width:".$width."px; background-color:blue;'>";
echo "</div>";
}
}
?>
En tu estilo no existe
backgroud-color sino
background-color
Saludos
Gildus