.gradient { border:0.1mm solid #220044; background-color: #f0f2ff; background-gradient: linear #c7cdde #f0f2ff 0 1 0 0.5; } h4 { font-family: sans; font-weight: bold; margin-top: 1em; margin-bottom: 0.5em; } div { padding:1em; margin-bottom: 1em; text-align:justify; } .myfixed1 { position: absolute; overflow: visible; left: 0; bottom: 0; border: 1px solid #880000; background-color: #FFEEDD; background-gradient: linear #dec7cd #fff0f2 0 1 0 0.5; padding: 1.5em; font-family:sans; margin: 0; } .myfixed2 { position: fixed; overflow: auto; right: 0; bottom: 0mm; width: 65mm; border: 1px solid #880000; background-color: #FFEEDD; background-gradient: linear #dec7cd #fff0f2 0 1 0 0.5; padding: 0.5em; font-family:sans; margin: 0; rotate: 90; }

mPDF

Floating & Fixed Position elements

CSS "Float"

Block elements can be positioned alongside each other using the CSS property float: left or right. The clear property can also be used, set as left|right|both. Float is only supported on block elements (i.e. not SPAN etc.) and is not fully compliant with the CSS specification. Float only works properly if a width is set for the float, otherwise the width is set to the maximum available (full width, or less if floats already set).
Margin-right can still be set for a float:right and vice-versa.
A block element next to a float has the padding adjusted so that content fits in the remaining width. Text next to a float should wrap correctly, but backgrounds and borders will overlap and/or lie under the floats in a mess.
NB The width that is set defines the width of the content-box. So if you have two floats with width=50% and either of them has padding, margin or border, they will not fit together on the page.
This is text in a <div> element that is set to float:right and width:28%. It also has an image with float:right inside. With this exception, you cannot nest elements with the float property set inside one another.
This is text in a <div> element that is set to float:left and width:54%.
This is text that follows a <div> element that is set to clear:both.

CSS "Position"

At the bottom of the page are two DIV elements with position:fixed and position:absolute set
1 Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo.
2 Praesent pharetra nulla in turpis. Sed ipsum nulla, sodales nec, vulputate in, scelerisque vitae, magna. Sed egestas justo nec ipsum. Nulla facilisi. Praesent sit amet pede quis metus aliquet vulputate. Donec luctus. Cras euismod tellus vel leo.
'; //============================================================== //============================================================== //============================================================== include("../mpdf.php"); $mpdf=new mPDF('s'); $mpdf->SetDisplayMode('fullpage'); $mpdf->WriteHTML($html); // Separate Paragraphs defined by font $mpdf->Output(); exit; //============================================================== //============================================================== //============================================================== ?>