Location: PHPKode > projects > Lithron > lithron-1.0.2/examples/007-position.xml.php
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<lithron>
    <style>
        page.A4 {
            height: 297mm;
            width: 210mm
        }
        .wrapper
        {
            background-color: cmyk(0,0,0,5);
            padding: 1cm;
        }
        .absolute1
        {
            position: absolute;
            background-color: cmyk(50,0,0,0);
            left: 2cm;
            top: 1cm;
            width: 5cm;
            height: 3cm;
            padding: 0.25cm;
        }
        .absolute2
        {
            position: absolute;
            background-color: cmyk(25,0,0,0);
            right: 0.5cm;
            bottom: 0.5cm;
            width: 3cm;
            height: 1.5cm;
            padding: 0.25cm;
        }
        .relative
        {
            position: relative;
            background-color: cmyk(0,0,20,0);
            margin-left: 2cm;
        }
    </style>

    <file name="<?php echo "lithron-".basename(__FILE__,"xml.php")."pdf" ?>">
        <page class="A4">
            <div class="wrapper">
            Lorem ipsum ...
            <div class="relative" background-color="cmyk(0,50,0,0)">
                <div class="absolute1">
                    1cm top, absolute
                    <div class="absolute2">
                        0.5cm bottom right, absolute
                    </div>
                </div>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            relative relative relative relative <br/>
            </div>
            Lorem ipsum ...
            </div>
        </page>
    </file>



</lithron>
Return current item: Lithron