What i am trying to do is get $left to work as the number for the left in the css code if that makes sense
This way i can do a variable for left and top depending on the picture it is going to use.
Basically what i am doing is i have a paper doll system when the change weapons each weapon picture is alittle different in size and i need the top and left to change for each picture
this is what i am calling the image foward in
Code: Select all
<?php
$playerwepim = $playerinfo3['WeaponImage'];
?>
<div id="wepim">
<?php
echo "<img src='$playerwepim'>";
?>
</div>
Code: Select all
<?php
header("Content-type: text/css; charset: UTF-8");
$left = "10";
);
?>
body {
background-color: #ffffff;
}
#wepim {
position:absolute;
left: <?php echo $left; ?>px;
top:525px;
width:93px;
height:160px;
z-index:1;
text-align:left;
}
if i can not do that is there a way for me to override the left and top in a php script like when i tell it what to put in #wepim