Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1

    Default AUTO MOBLE DETECT AND FIT

    Hallo
    I found the below mentioned code which automatically changes it to a mobile: I have not tried it out. I do not want to design a mobile site, i want
    the site to automatically detect and fit on any other device

    If it is the case, where will this code go then?

    RewriteEngine On

    RewriteCond %{HTTP_USER_AGENT} (OneMobileUserAgent|AnotherMobileUserAgent|...)
    RewriteRule (.*) mobile/$1

    which would move, for example, requests to http://domain/index.html to http://domain/mobile/index.html


    I found another code as well:
    meta name="viewport" content="width=device-width, initial-scale=1.0">

    that could do the trick I hope, kindly advise

  2. #2
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: AUTO MOBLE DETECT AND FIT

    The rewrite code goes in a htaccess file and will redirect specific devices to a different url where there is a mobile version of your site. With this you need to design and upload a separate mobile version of the site.

    The viewport tag will tell the browser to scale the site in a specific way. If you just have a desktop site and leave the tag out I think most mobile browsers should zoom out to fit screen width automatically which I prefer myself but it will probably vary depending on device/browser settings.
    XT-CMS - a self-hosted CMS for Xara Designers - Xara + CMS Demo with blog & ecommerce shopping cart system.

  3. #3
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: AUTO MOBLE DETECT AND FIT

    The new version of Web Designer 10 Premium can design full size web sites and mobile variants. A CSS query determines the size of the browser screen and automatically displays the correct size in the visitors browser.

    See the First Look Review of Web Designer 10 Premium here http://xaraxone.magix.net/xwd10/#xr_page1

 

 

Bookmarks

Posting Permissions

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