Location: PHPKode > projects > Lithron > lithron-1.0.2/examples/bug602-position_1.xml.php
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<lithron>
	<style>
		page.A4 {
            height: 297mm;
            width: 210mm
        }
        wrapper {
            display: block;
            margin-top: 2cm;
            margin-right: 3cm;
            margin-bottom: 2cm;
            margin-left: 2cm;
            background-color: cmyk(0,0,0,20);
            width: 10cm;
            height: 10cm;
            position: relative;
        }
	</style>

    <file name="<?php echo "lithron-".basename(__FILE__,"xml.php")."pdf" ?>">
		<page class="A4">
            <wrapper>
				<div top="1cm" left="1cm"
                    width="2cm" height="2cm"
                    background-color="cmyk(0,100,0,0)"
                    position="absolute">DIV 1</div>

                <div top="1cm" left="1cm"
                    width="2cm" height="2cm"
                    background-color="cmyk(100,0,0,00)"
                    position="relative">DIV 2</div>

                <div bottom="1cm" right="1cm"
                    width="2cm" height="2cm"
                    background-color="cmyk(0,0,100,00)"
                    position="absolute">DIV 3</div>
            </wrapper>
        </page>
	</file>


	
</lithron>
Return current item: Lithron