Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Back in 2008, smartphones were a small market and it was commonplace for sites to be designed for a fixed width - say, 900px or 960px - with the page centered if the browser window was larger. Many designers said fluid width was better, but since user screens typically varied between 1024x768 and 1920x1080, fluid width allowed longer line length than is optimal for ease of reading, and so many sites (including Stack Exchange) use fixed width.

Now that mobile devices are common, what is the the best approach to support both desktop and mobile browsers?

  • Establish a separate mobile site (e.g:
  • Serve a different CSS to mobile devices; if so how? Server-side browser sniffing, or a @media rule?
  • Use Javascript or something to adapt the website dynamically to the client? Should all websites be expected to be responsive?
  • Some kind of fluid layout
  • Something else?
share|improve this question
This link may be to your liking: – Jason Dec 6 '12 at 21:51

I think the answer depends on the nature of the project you have. I had the same question yesterday and for my project the best answer was to create a different mobile website. It was however very close to add responsive css to it.

My reasons for doing another website: 1) My design was not built to be responsive. To turn it into responsive would take a while. 2) The website design was considerably different then the mobile design. It would have been a challenge to make the change, I would have to load things just for the mobile version (and hide them on the full page website) and the other way around. 3) my mobile website is a lot simpler then the full website, if I use responsive design then on the mobile website a lot more code would be loaded that would be just hidden. This will make the pages work a lot slower then on a dedicated website.

In short, I was concerned about turning the design into a responsive one and about the speed of the application on mobile devices.

To create the mobile website will not be so hard, I can reuse the same models/controllers and just change the views.

However, if my design was built to be responsive from the start then i would have probably chosen to make it responsive.

share|improve this answer
Can I ask what do you exactly mean with: "my design was built to be responsive" in this context? Thank you :) – Luigi Massa Gallerano Dec 6 '12 at 10:12
"responsive" is the new name of "fluid layout" (yeah, i'm simplifying... still, is the same concept) – Javier Dec 6 '12 at 16:45

I agree with Mihai that you should try to create a separate mobile website instead of using responsive design. It will be fast to upload and more user friendly. I created my all mobile websites using a mobile website creator at and all are working fine. I simply added a re-direct code to main website index page and a jquery file to root directory. Hope it helps!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.