Jump to content

User:Stephan Kulla/Bug: Float and Image in PDF-Export

From Meta, a Wikimedia project coordination wiki

Bug example

[edit]

In the PDF version of this page, the icon is not floated left to the message. It seems like the PDF-Export ignores the float:left of the <div> containing the icon.

Example:

This is an example message displayed to the reader.

The code:

<div style="margin:20px 0;">
<div style="width: 50px; float: left;">
[[File:Icon Mathematical Plot.svg|none|50px]]
</div>
<div style="margin-left: 50px; padding-left: 10px;">
<p><span style="color: rgb(18,36,141);"><b>Example</b></span>:</p>
<p>This is an example message displayed to the reader.</p>
</div>
</div>