Image max-width with Lightbox plugin
Posted: Tue 21. Jul 2015, 08:44
Dear All,
I have a question about best way for adapting image width in lighbox plugin.
Shortly, I have a single version of website for mobile and desktop devices. It's use kind of adaptive design with using meta name viewport for better fonts presentation.
So if I use lightbox plugin with image preview width with the well suitable for desktop configuration like
or more I got image out of screen on both sides on my smartphone. What the best way to adaptive image width in ligthbox plugin for mobile devices with narrow screens with phpwcms?
For example for my smartphone I need to set for image being in screen
I understand that it's not very good solution, because of image downscale and loading time.
I have a question about best way for adapting image width in lighbox plugin.
Shortly, I have a single version of website for mobile and desktop devices. It's use kind of adaptive design with using meta name viewport for better fonts presentation.
Code: Select all
<meta name="viewport" content="initial-scale=0.75, width=device-width">
Code: Select all
$phpwcms['img_prev_width'] = 538; //max width of the large preview image
or more I got image out of screen on both sides on my smartphone. What the best way to adaptive image width in ligthbox plugin for mobile devices with narrow screens with phpwcms?
For example for my smartphone I need to set
Code: Select all
$phpwcms['img_prev_width'] = 470; //max width of the large preview image
I understand that it's not very good solution, because of image downscale and loading time.