SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2010
    2 Post(s)
    0 Thread(s)

    basic questions about mobile development

    I'm building my first mobile site (mobile only, not responsive), I just have some basic questions I was hoping someone could help me with or point me in the right direction to get started. Thanks in advance.

    1. Is it safe to assume that javascript is alway on, or should I code fallbacks incase js is off?

    2. With CSS properties, do I need to worry about browser prefixes? For example, would I need to do this:
    Code CSS:
    background: -webkit-linear-gradient(top, #2F2727, #1a82f7);
    background: -moz-linear-gradient(top, #2F2727, #1a82f7);

    or could I just the CSS3 standard:

    Code CSS:
    background: linear-gradient(black, white);

    3. I am building nested navigation almost identical to this:
    except the sub nav will slide up. Should I build this the same way I would for a desktop browser, maybe like a jQuery accordion? Or is there just a better way to do this with iPhone/mobile? Are CSS transitions better to use on mobile?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    463 Post(s)
    8 Thread(s)
    Quote Originally Posted by sessions View Post
    do I need to worry about browser prefixes?
    For questions like that, go to sites like caniuse, which keep you up to date with how well things are supported:

  3. #3
    SitePoint Wizard
    Join Date
    Feb 2007
    Southern California
    1 Post(s)
    1 Thread(s)
    1. You would create the site with the same parameters for JS as your regular site, as they'll be using a variety of browsers. Only you know if your users tend to turn JS off or not. Are they browser-savvy users like that?

    2. Since your site will be seen across several browsers, I suggest using browser prefixes. However, they are quickly becoming obsolete with the newer versions of the browsers. So ... you would include them to support earlier versions, then decide when to stop supporting them.

    3. I suggest using patterns already developed specifically for mobile, such as Zurb Foundation, Skeleton, and others. This article gives several suggestions:
    Steve Husting


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts