satheeshn 0 Newbie Poster

Hi friends,

I have use relative div positions with in 5 div absolute div position elements. How write in pdf using php.


Regards,

Satheeshkumar

sample code.

<?php
	for($i=0;$i<$count;$i++)
	{
?>
<div style="position:relative;border:solid 0px black;width:600px;height:230px;top:5px;">
<div id='dt' style="position:relative; top:<? echo $dty]-400; ?>px; left:<? echo $dtx]; ?>px; text-align:left;" name=dt><?php echo $dat[$i]; ?></div>

	<div id='pay' style="position:absolute; top:<? echo $payy]-400; ?>px; left:<? echo $payx; ?>px;width:300px;" name=pay><?php echo $pay[$i]; ?></div> 

	<div id='amt' style="position:absolute; top:<? echo $amty-400; ?>px; left:<? echo $amtx; ?>px;width:100px; text-align:right;" name=amt><?php echo $amt[$i]; ?></div>

        <div id='amtinwords' style="position:absolute; top:<? echo $amtwordy-400; ?>px; left:<? echo $amtwordx; ?>px;text-decoration:underline; width:450px; text-align:left;" name=amtinwords><?php echo $aword[$i]; ?></div>

	<div id='address' style="position:absolute; top:<? echo $addy-400; ?>px; left:<? echo $addx; ?>px;height:65px; width:160px; text-align:left;" name='address'><?php echo $add[$i]; ?></div>

</div>
<?php
}
?>