Roundcube Community Forum
Release Support => Release Discussion => Topic started by: lacosta on January 26, 2017, 02:44:03 AM
-
Hi, where i can add option max-width: 100% to img style ? This code is generated by php, this is not in css. Most of phone app client add picture to html body not as attachment. Problem is size of pictures, when 2K and more res. is over preview container.
<div class="rcmBody">
<div>
<img style="width: auto; height: auto;" alt="Image" src="./?_task=mail&_action=get&_mbox=INBOX&_uid=xxxxxxx&_token=xxxxxxxxxxxxxxxxxx&_part=2&_embed=1&_mimeclass=image">
Solution is :
<div class="rcmBody">
<div>
<img style="width: auto; height: auto; max-width: 100%;" alt="Image" src="./?_task=mail&_action=get&_mbox=INBOX&_uid=xxxxxxx&_token=xxxxxxxxxxxxxxxxxx&_part=2&_embed=1&_mimeclass=image">
-
I think that html would be part of the email message not part of the Roundcube code. The bast way to add a max-width would be to add a css file with the following:
.rcmBody img {
max-width: 100%;
}
-
It works ! Thank you ...