In this section (http://www.tjardastip.nl/feestineendoosje/#wie) I used the background image behind a column. But on a mobile device the image is cut off on the left and right side. I would like to make this fit. Is there a way to fix this?
Thanks, yes it works! But now there's a lot of white space below and above. I gave it a background color, that looks better. But it would be better if the box adjusts to the height of the photo. But I can't manage doing that. Do you also know a solution for that?
Thanks, that worked a little. But the bottom margin is still very big. I tried to add 'margin-bottom: -35vh', but that doesn't work. Now I changed the -34vh to -10vh, and then the space above and below is more or less the same. But the height of the area where the photo in, stays the same.
When I add 'background-size: cover !important;, the image is cut off on the left and right side again. So I deleted that and then it looks a little better, but there's still a big margin under the photo. I think it's good enough for now, thanks for your help!
Hi,
In this section (http://www.tjardastip.nl/feestineendoosje/#wie) I used the background image behind a column. But on a mobile device the image is cut off on the left and right side. I would like to make this fit. Is there a way to fix this?
Thanks in advance!
With kind regards,
Jantine
Hi Jantine,
Thanks for reaching out.
Try the following custom css in Salient > General settings > CSS/Script related:
Hope this helps.
Hi Andrew,
Thanks, yes it works! But now there's a lot of white space below and above. I gave it a background color, that looks better. But it would be better if the box adjusts to the height of the photo. But I can't manage doing that. Do you also know a solution for that?
Hi Jantine,
Add the following custom css:
Thanks.
Hi Andrew,
Thanks, that worked a little. But the bottom margin is still very big. I tried to add 'margin-bottom: -35vh', but that doesn't work. Now I changed the -34vh to -10vh, and then the space above and below is more or less the same. But the height of the area where the photo in, stays the same.
Hi Jantine,
Thank you for reaching out again.
Kindly paste the following code in your custom css code Salient > General > CSS/Script Related:
Regards
Hi Andrew,
When I add 'background-size: cover !important;, the image is cut off on the left and right side again. So I deleted that and then it looks a little better, but there's still a big margin under the photo.
I think it's good enough for now, thanks for your help!
Regards, Jantine
Hi Jantine.
Sorry for the late response.
We are glad you found a way out the issue.
Kind Regards.