Fluid images, responsive web design and CMSB

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 4, 2013   (RSS)

Hi,

As PHP isn't capable of knowing the screen resolution of the user who has requested the page, you will have to use Javascript to change the image that is being used. 

You could give this plugin a try, it uses a mix of Javascript and PHP to resize images on the fly, but it does look as if it might be fairly resource intensive:

http://adaptive-images.com/

Another better looking solution is hisrc: 

https://github.com/teleject/hisrc

If you download this plugin and look at the breakpoint demo, you can see how it would be possible to use the thumbnails generated by CMS Builder for smaller images.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com