Making an image fit on mobile

9 replies · opened Sep 30, 2020

Llemon94Sep 30, 2020

Hi guys,

Just wondering best way to make an image fit on a mobile as it does on the browser version? Any ideas/codes?

Thanks!

SSemicolon WebSTAFFOct 1, 2020

Hello,

You can simply add the .img-fluid Class to the `` Tag to make it responsive and fir the Screen: https://getbootstrap.com/docs/4.5/content/images/ .

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Llemon94Oct 1, 2020

I just tried, but it hasn't seemed to work! Could you double check and advise please? Thanks again!

SSemicolon WebSTAFFOct 1, 2020

Hello,

We have checked out the codes on your Website and the issue is there because you are adding the Image inside a .row DIV which is not required. Simply remove the .row DIV and add your image directly.

This should work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Llemon94Oct 1, 2020

Done! This now works perfect on mobile. Thank you!

However I do have one more question regarding this, relating to the browser. Is there a way to allow the current image on the site to fill up the whole section? As in, it stops almost halfway. I would like to have it almost centered/filled up the whole middle bit on the page

SSemicolon WebSTAFFOct 2, 2020

Hello,

The Image is not filling up the whole section are you are using the .col-lg-7 Class which is from the Bootstrap Grid: https://getbootstrap.com/docs/4.5/layout/grid/ . Simply replace this class with .col-12 and this will allow the Image to fill up the entire section. Please ensure that you double check the codes to avoid any unexpected issues.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Llemon94Oct 2, 2020

Done! That worked great!

I assume this combined with the previous mobile fitting code, will mean it works fine across all size browsers/devices, too?

SSemicolon WebSTAFFOct 2, 2020

Hello,

Absolutely! This will work uniformly on all the Browsers.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Llemon94Oct 2, 2020

Wow. Great support. Thank you again! Love it.

SSemicolon WebSTAFFOct 2, 2020

Very happy to Help! :)

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard