Add css for images in columns for mobile devices
[MAILPOET-1653]
This commit is contained in:
@@ -30,7 +30,7 @@ class Image {
|
||||
}
|
||||
$template = '
|
||||
<tr>
|
||||
<td class="mailpoet_image ' . (($element['fullWidth'] === false) ? 'mailpoet_padded_bottom mailpoet_padded_side' : '') . '" align="' . $align . '" valign="top">
|
||||
<td class="mailpoet_image ' . (($element['fullWidth'] === false) ? 'mailpoet_padded_bottom mailpoet_padded_side' : 'mailpoet_full_width_image') . '" align="' . $align . '" valign="top">
|
||||
' . $image_template . '
|
||||
</td>
|
||||
</tr>';
|
||||
|
@@ -35,6 +35,10 @@
|
||||
outline: none;
|
||||
text-align: center;
|
||||
}
|
||||
.mailpoet_full_width_image img {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
.mailpoet_padded_bottom {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user