Forum How do I...?

specific width for an image on Prince PDF

ixgal
hi,
I am using the source in HTML both for web and for PDF (with Prince).
In some images, I would like to set a specific width for the PDF version, without affecting the output on he web.
I tried adding:
style="@media print {width: 2cm};" inside the img tag, but there was no effect on the PDF.

Is there any style I could add in order to get the specific width on the PDF without affecting the web output?

thanks
mikeday
You can use @media print in <style> elements, but not attributes. So you could put a class or ID on the image element and reference it from your style sheet.