Landing page doesn't look good on mobile | Community
Skip to main content
Ophir_Gal
Level 2
Oct 14, 2018 10:26 AM UTC
Solved

Landing page doesn't look good on mobile

Hi,

I have build a landing page for a campaign, based on Landing Page Template - Guided.

It is fair on desktop (not too flexible though) but the problem is when going mobile:

1. Photos stays the same size (banner image, image on body) so they looked cut-out (half image)

2. Youtube videos (embed as iframe) the same

3. Navigation header (where the logo is), yep, the same

Not sure what to do.

Is there a template I can download to better fit mobile?

Other solution?

Thanks in advance,

Ophir

Gerard_Donnell4
Gerard_Donnell4Accepted solution
Level 9
Oct 15, 2018 11:44 AM UTC

Thanks @Gerard Donnelly​,

It works perfect for images, but the YouTube videos gets squashed on desktop:

Any idea?


Hi @Ophir Gal​,

Try leaving the height at 315 on the iframe and just change the width to 100%.

10 replies

Gerard_Donnell4
Level 9
Oct 15, 2018 9:09 AM UTC

Hi @Ophir Gal​,

Your Youtube iframes currently have a fixed width:

<iframe width="560" height="315" src="youtube.com/embed/hjxK26reKP4?rel=0&cc_load_policy=1&hl=ja" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>

Try removing the height completely and setting the width to 100%.

<iframe width="100%" src="youtube.com/embed/hjxK26reKP4?rel=0&cc_load_policy=1&hl=ja" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>

Also do this on the images you have inserted.

Hopefully that should fix your issues.

Thanks,

Gerard

Translate
Gerard_Donnell4
Level 9
Oct 15, 2018 9:14 AM UTC

Here are examples of what it looks like when I swapped the widths to be 100% and removed the height. Everything looks good.

Translate
Ophir_Gal
Ophir_GalAuthor
Level 2
Oct 15, 2018 11:23 AM UTC

Thanks @Gerard Donnelly​,

It works perfect for images, but the YouTube videos gets squashed on desktop:

Any idea?

Translate
Grégoire_Miche2
Level 10
Oct 14, 2018 4:08 PM UTC

Please provide the URL of your page.

This is necessarily a HTML/CSS issue and we cannot help you without a URL.

And also, what template are you using ?

-Greg

Translate
Ophir_Gal
Ophir_GalAuthor
Level 2
Oct 15, 2018 7:58 AM UTC

Hi @Grégoire Michel​,
It's Landing Page Template - Guided, and the page is https://go.landanano.com/Japan-VIP-Event-2018-Summary.html

Do you mean it is necessary to edit the code?

Thanks,

Ophir

Translate
Ronen-Was-SRpro
Level 5
Oct 15, 2018 8:54 AM UTC

Hi,

Usually, such issues are only dealt in the HTML/CSS as @Grégoire Michel mentioned.

Translate
Ronen Wasserman