![]() |
formatting sites for mobile devices - 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: formatting sites for mobile devices (/showthread.php?tid=32714) |
formatting sites for mobile devices - El Forum - 08-01-2010 [eluser]bigtimslim[/eluser] I am getting ready to create mobile versions of a few sites (probably just use a stysheet). I know that you can tell mobile devices to use a specific css file with the following html: Code: <link rel="stylesheet" href="mobile.css" type="text/css" media="handheld" /> However, this doesn't work for me when I switch to iphone 3 useragent. From further research, I have read that this way often doesn't work. Any thoughts? Should I just detect mobile with CI and load the needed sheet? formatting sites for mobile devices - El Forum - 08-03-2010 [eluser]gyo[/eluser] You can try the is_mobile() function in the User Agent Class. formatting sites for mobile devices - El Forum - 09-05-2010 [eluser]Unknown[/eluser] [quote author="gyo / suashi" date="1280854562"]You can try the is_mobile() function in the User Agent Class.[/quote] Thank you it works very fine, i searched many months of this code^^ |