Forums / Cotonti / Extensions / Cotonti Mobile

Dyllon
#30959 2011-10-11 13:46
#30948 Brock:

Wow, Dyllon. Didn't even think to give me a shout? ;)

Your alive! Next time I see you online, we shall talk.

#30953 GHengeveld:

With css media queries you can create mobile themes using only css. Downside is that it will still load the entire html for the desktop version on the phone so it's less efficient.

An example is Webmojo, my company website. If you lower the screen width (by resizing the window) you'll see it dynamically adjusts to the screen size.

Correct. Simply changing the viewport to adjust to the size of the devices screen is the correct way to go about it. using this in your <head> tags:

<meta name="viewport" content="width=device-width, initial-scale=1">

I'm almost done tweaking the theme I have. I'll probably post it some time tonight.

We are what we repeatedly do. Excellence then, is not an act, but a habit.