WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Mobile image
  • Print
Pages: [1]   Go Down

Author Topic: Mobile image  (Read 9129 times)

apple

  • Guest
Mobile image
« on: October 14, 2023, 02:54:19 PM »
Hi, how do I make my images on mobile responsive and proportionate? The images look a bit elongated and compressed on mobile screen. Please see file attached. Left is normal and how it should be like. Right image when view on mobile. It appears squoze and elongated.
Thanks
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Mobile image
« Reply #1 on: October 14, 2023, 03:41:37 PM »
Hi, in your css file should be a part for all images like this:

Code: [Select]
img {
  max-width: 100%;
  height: auto!important;
}
Logged
https://onkel-franky.de

apple

  • Guest
Re: Mobile image
« Reply #2 on: October 14, 2023, 04:50:58 PM »
Doh, I overlooked "height: auto!important;" Thank you very much!

One last question. Is it possible to isolate certain image rendering on moblle screen? For example, the header image. I want only the header image stretch across the screen.
Thanks
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Mobile image
« Reply #3 on: October 14, 2023, 05:19:37 PM »
Make class from this for example .wide {... css code from below} then to header image add class > class="wide"
Logged
Web developer

apple

  • Guest
Re: Mobile image
« Reply #4 on: October 14, 2023, 08:47:51 PM »
Thank you  (Y)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Mobile image
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2