Max image width on a "Custom Liquid" section

Hi!

I am not good in coding, but I can basic HTML.

This is my page:

myra.no

I just changed to Dawn Theme, and want to make clickable image banners. Since that is not an option in Dawn, I used the “Custum Liquid” in the theme editor, and put in a simple HTML code to find the banner image, and link it up to the right page. The code in the custom liquid box looks like this:

The layout is optimized for mobile, and works fine there, but the problem is when it is viewed on a large computer screen. Is it any way I can set the width to a maximum size?

Thank you.

Hello @leifdalen

It’s GemPages support team and glad to support you today.

I check your page . The image has shown fullwidth with large screen:

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

Hi again. Thank you for responding! Maybe I wasn’t clear enough…

I do NOT want te image to be in maximum width when it is viewed on a computer screen, because the text and button gets enormous, since the layout is optimized for mobile.

So, is it a way to set a fixed maximum width, for example 600px?

@leifdalen

I have updated the code.
You can try again.

[
![kalizza_banner_copy.jpg?v=1672853783|1920x1080](upload://x44XJKqm1Tz5VddLoGiKxPsU4jX.jpeg)
](https://myra.no/collections/dameklaer/products/8164446-kaffe-clothing-kalizza-knit-pullover-apple-gr...)
1 Like

It works perfect!
This is just what I have been looking for all day.

Thank you so much :grinning_face_with_smiling_eyes: :grinning_face_with_smiling_eyes: