CodeIgniter Forums
Background Resizing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Background Resizing (/showthread.php?tid=46449)



Background Resizing - El Forum - 11-01-2011

[eluser]DocFunky![/eluser]
Hi !

What is the best way to adapt your background image to the user screen resolution ?

I know i'm gonna need screen.width and height javascript command but should I resize it automatically with the CI image resize helper (or a javascript equivalent code ?) or should I create different images in order to pick up the right on (1600*900image1.JPG , 800*600image1.JPG ....)
I think the code get weighty with the automatic resizing don't it ?

Well how did you do with your previous website?
What is the best technique to do so ?

Thanks so much Smile