Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Site compatible with iPhones

  1. #21
    Max
    Guest

    Default Re: Site compatible with iPhones

    It's possible to use other methods - such as adding an @media or @import
    in the CSS, however the level of support for these varies between mobile
    browsers, so the method isn't very reliable. JavaScript can be used too,
    but since not all mobile browsers support it that can't be relied on
    either. Redirects in the .htaccess are possible too. PHP tends to be
    preferred, however.

    Max

    ----
    Mike C wrote:
    > Max I thought the CSS could do that?
    >
    > Mike C
    >
    > "Max" <max@domain.invalid> wrote in message
    > news:hnb8ts$j3r$1@DailyPlanet.news.netobjects.com. ..
    >> Yes, you can do that, if you don't mind maintaining 2 sites. The most
    >> reliable way is probably to use some PHP code to detect the user agent
    >> - but, as per my earlier post, do allow the users to choose the
    >> regular site if they want to.
    >>
    >> This may help:
    >>
    >> http://www.dansmart.co.uk/2009/09/ho...tiple-devices/
    >>
    >>
    >> Max
    >> ----
    >> Tim wrote:
    >>> Hi Max,
    >>>
    >>> Very good points. Is there a way to have two sites, one for iPhone
    >>> and one for desktops and program it somehow so the server know which
    >>> flavor to dish up?
    >>>
    >>> Thanks,
    >>> Tim
    >>>
    >>> "Max" <max@domain.invalid> wrote in message
    >>> news:hnb10m$ffq$1@DailyPlanet.news.netobjects.com. ..
    >>>> Tim
    >>>>
    >>>> If you're only designing for iPhone, the iPhone has a screen
    >>>> resolution of 320 x 480, so you might want to set your screen width
    >>>> to one of these (depending on whether you want to design for
    >>>> portrait or landscape display). Alternatively something like 330px
    >>>> might make a good column width - so x 3 = 990px design for regular
    >>>> computer screens.
    >>>>
    >>>> http://www.gsmarena.com/apple_iphone_3g-2424.php
    >>>>
    >>>> Max
    >>>>
    >>>> ----
    >>>> Chuck Joslin wrote:
    >>>>> Tim,
    >>>>>
    >>>>> You have to allow for the width of a scrollbar for longer than
    >>>>> screen height pages...
    >>>>>
    >>>>> I generally use a width of 996 px or so.
    >>>>>
    >>>>> If you were designing only for iPhone, you could use 1024, since
    >>>>> there are no scrollbars.
    >>>>>
    >>>>> But on a "normal" computer browser there will be.
    >>>>>

    >


  2. #22
    Max
    Guest

    Default Re: Site compatible with iPhones

    If you only want to design for the iPhone, this may be useful:

    http://www.philadelphia-reflections.com/blog/1621.htm

    Max
    ---
    Max wrote:
    > It's possible to use other methods - such as adding an @media or @import
    > in the CSS, however the level of support for these varies between mobile
    > browsers, so the method isn't very reliable. JavaScript can be used too,
    > but since not all mobile browsers support it that can't be relied on
    > either. Redirects in the .htaccess are possible too. PHP tends to be
    > preferred, however.
    >
    > Max
    >
    > ----
    > Mike C wrote:
    >> Max I thought the CSS could do that?
    >>
    >> Mike C
    >>
    >> "Max" <max@domain.invalid> wrote in message
    >> news:hnb8ts$j3r$1@DailyPlanet.news.netobjects.com. ..
    >>> Yes, you can do that, if you don't mind maintaining 2 sites. The most
    >>> reliable way is probably to use some PHP code to detect the user
    >>> agent - but, as per my earlier post, do allow the users to choose the
    >>> regular site if they want to.
    >>>
    >>> This may help:
    >>>
    >>> http://www.dansmart.co.uk/2009/09/ho...tiple-devices/
    >>>
    >>>
    >>> Max
    >>> ----
    >>> Tim wrote:
    >>>> Hi Max,
    >>>>
    >>>> Very good points. Is there a way to have two sites, one for iPhone
    >>>> and one for desktops and program it somehow so the server know which
    >>>> flavor to dish up?
    >>>>
    >>>> Thanks,
    >>>> Tim
    >>>>
    >>>> "Max" <max@domain.invalid> wrote in message
    >>>> news:hnb10m$ffq$1@DailyPlanet.news.netobjects.com. ..
    >>>>> Tim
    >>>>>
    >>>>> If you're only designing for iPhone, the iPhone has a screen
    >>>>> resolution of 320 x 480, so you might want to set your screen width
    >>>>> to one of these (depending on whether you want to design for
    >>>>> portrait or landscape display). Alternatively something like 330px
    >>>>> might make a good column width - so x 3 = 990px design for regular
    >>>>> computer screens.
    >>>>>
    >>>>> http://www.gsmarena.com/apple_iphone_3g-2424.php
    >>>>>
    >>>>> Max
    >>>>>
    >>>>> ----
    >>>>> Chuck Joslin wrote:
    >>>>>> Tim,
    >>>>>>
    >>>>>> You have to allow for the width of a scrollbar for longer than
    >>>>>> screen height pages...
    >>>>>>
    >>>>>> I generally use a width of 996 px or so.
    >>>>>>
    >>>>>> If you were designing only for iPhone, you could use 1024, since
    >>>>>> there are no scrollbars.
    >>>>>>
    >>>>>> But on a "normal" computer browser there will be.
    >>>>>>

    >>


  3. #23

    Default

    Mobile apps are really amazing as well as we talk about apps I remind this one GBWhatsApp which is a modified version of WhatsApp.

Posting Permissions

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