abdua5s Posted April 10, 2015 Share Posted April 10, 2015 hey i have seen that facebook have different website for desktop and mobile like when we open in phone its m.fb.com and pc www.fb.com so any idea how to do it using html my website is darksoulcoc.com Link to comment Share on other sites More sharing options...
tejasamrute Posted April 10, 2015 Share Posted April 10, 2015 they are two different websites....you will have to code your website again with mobile approach using media queries.. http://www.w3schools.com/cssref/css3_pr_mediaquery.asp Link to comment Share on other sites More sharing options...
dsonesuk Posted April 11, 2015 Share Posted April 11, 2015 The desktop version will be the main domain, the other is subdomain of the main for mobile, you get the same with yahoo.com, and m.yahoo.com. some dectection is made and redirect is made to appropriate site. Link to comment Share on other sites More sharing options...
abdua5s Posted April 14, 2015 Author Share Posted April 14, 2015 Np i will make website again i just want is how will website will detect is he using phone or desktop Link to comment Share on other sites More sharing options...
Ingolme Posted April 14, 2015 Share Posted April 14, 2015 The more modern approach is to make one single page that's responsive. Having two different pages was a technique used when media queries were not as widely supported. If you wonder why such big websites as Yahoo and Facebook do it, it's because transitioning from what they currently have to fully responsive would actually cost a lot of money. They'll likely do it eventually, though. Link to comment Share on other sites More sharing options...
oliviazane Posted April 15, 2015 Share Posted April 15, 2015 have one version of your site & then have 2 versions for the css files. use browser sniffing methods to detect what type of device is using then serve the appropriate css file i.e one for mobile and one for desktop. you can even have for tables, phablets and for standard phones. having two different subdomains is not goog for seo purposes as it splits your link juice Link to comment Share on other sites More sharing options...
dsonesuk Posted April 15, 2015 Share Posted April 15, 2015 Use css media queries to detect device width, height and adjust accordingly, Not! JavaScript browser sniffing. The reason yahoo use subdomains is probably for international location reasons, they have different content depending on location yahoo.com usa, uk.yahoo.com for uk, and others i suspect, because they target a wider audience, while normally the content would target mostly the local, National area. Link to comment Share on other sites More sharing options...
Ingolme Posted April 15, 2015 Share Posted April 15, 2015 Browser sniffing is a really bad technique. It's can be easily fooled and isn't able to take future browsers and version updates into account. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now