Forum How do I...?

Placement of float elements

sarankup
Hi,

My client, always want to place at top of the page. How to achieve this?

For example, assume my HTML goes as below:
<div>first paragraph</div>
<div><img src=''/></div<
<div>second paragraph</div>

The resulted PDF document, the image must appear on top of the page irrespective of any page. ie., image should not appear between two paragraphs.

Best wishes,
Saravanan
mikeday
You can use "float: top" on the image.